@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;800&display=swap');

:root {
  --bg: #000000;
  --green: #22e34b;
  --red: #ff3b30;
  --blue: #29aef6;
  --yellow: #f7c948;
  --grey: #8a8a8a;
  --white: #ffffff;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Baloo 2', sans-serif;
  min-height: 100vh;
  padding: 20px;
}

.box {
  border-radius: var(--radius);
  border: 3px solid var(--grey);
  background: var(--bg);
}

/* ---------- TOPBAR ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.logo-box {
  border-color: var(--green);
  flex: 0 0 220px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  overflow: hidden;
}
.logo-box img { max-height: 100%; max-width: 100%; }

.icon-box {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.icon-box:hover { transform: scale(1.05); }
.icon-box svg { width: 34px; height: 34px; }

.stop-box { border-color: var(--red); }
.stop-box svg rect { fill: var(--red); }
.play-box { border-color: var(--green); }
.play-box svg polygon { fill: var(--green); }

.timer-box {
  flex: 1;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .5px;
  text-align: center;
  padding: 0 10px;
}

.brand-icon {
  flex: 0 0 84px;
  font-size: 40px;
  text-align: center;
}

/* ---------- MAIN AREA ---------- */
.main-area {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.content-box {
  flex: 1;
  min-height: 340px;
  border-color: var(--grey);
  padding: 30px 36px;
}

.content-box h1 {
  font-size: 28px;
  margin: 0 0 22px;
  letter-spacing: .5px;
}

.info-line {
  font-size: 20px;
  font-weight: 800;
  margin: 10px 0;
  letter-spacing: .5px;
}
.info-label { margin-right: 6px; }
.info-line a { color: var(--blue); text-decoration: none; }
.info-line a:hover { text-decoration: underline; }

.show-select {
  background: var(--bg);
  color: var(--white);
  border: 2px solid var(--grey);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-weight: 700;
  margin-bottom: 18px;
}

.control-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}
.ctrl-btn {
  flex: 1;
  border: 3px solid var(--blue);
  border-radius: 30px;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-weight: 800;
  padding: 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s ease;
}
.ctrl-btn:hover { background: rgba(41,174,246,.15); }

/* ---------- ANNONCE GRID ---------- */
.announce-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.announce-btn {
  border: 3px solid var(--yellow);
  border-radius: 30px;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  padding: 22px 10px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.announce-btn:hover { background: rgba(247,201,72,.15); transform: translateY(-1px); }

/* ---------- SIDE NAV ---------- */
.side-nav {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nav-btn {
  border: 3px solid var(--blue);
  border-radius: 30px;
  background: var(--bg);
  color: var(--white);
  font-family: inherit;
  font-weight: 800;
  padding: 14px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .5px;
}
.nav-btn.active {
  background: var(--blue);
  color: #041826;
}

/* ---------- BOTTOM BAR ---------- */
.bottombar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 30px;
}
.home-box {
  width: 84px;
  height: 84px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.home-box svg { width: 46px; height: 46px; fill: none; stroke: var(--white); stroke-width: 2; }

.date-box {
  border-color: var(--grey);
  padding: 14px 30px;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  min-width: 220px;
}

/* ---------- FORM (panel OG) ---------- */
.show-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}
.show-form input,
.show-form select,
.show-form textarea {
  background: var(--bg);
  border: 2px solid var(--grey);
  border-radius: 10px;
  color: var(--white);
  padding: 10px 12px;
  font-family: inherit;
}
.show-form button {
  border: 3px solid var(--green);
  border-radius: 30px;
  background: transparent;
  color: var(--white);
  font-weight: 800;
  padding: 12px;
  cursor: pointer;
}

.rcon-log {
  background: #0a0a0a;
  border: 2px solid var(--grey);
  border-radius: 10px;
  padding: 14px;
  min-height: 140px;
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--green);
}

.placeholder-text { color: var(--grey); }

/* ---------- LOGIN ---------- */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  border: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 50px 60px;
  text-align: center;
}
.login-card h1 { margin-top: 0; }
.discord-btn {
  display: inline-block;
  margin-top: 20px;
  background: #5865F2;
  color: white;
  text-decoration: none;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 30px;
}
.error-msg { color: var(--red); font-weight: 700; min-height: 20px; }

@media (max-width: 900px) {
  .main-area { flex-direction: column; }
  .side-nav { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .announce-grid { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
}
