/* === GLOBAL === */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #020617;
  color: #e2e8f0;
}

/* === LOGIN PAGE === */
.login-page {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, #111827, #020617);
}

.login-box {
  background: #0f172a;
  padding: 30px;
  border-radius: 16px;
  width: 340px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.8);
  text-align: center;
}

.login-logo {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #facc15, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
  color: #0f172a;
  margin: 0 auto 10px;
  box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}

.login-box h2 {
  color: #e5e7eb;
  letter-spacing: 1px;
}

.input {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e2e8f0;
}

.input:focus {
  border-color: #3b82f6;
}

.btn-primary {
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg,#6366f1,#3b82f6);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.error {
  padding: 10px;
  background: #b91c1c;
  color: #fee2e2;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* === LAYOUT PANEL === */
.panel-layout {
  display: flex;
  min-height: 100vh;
  background: #020617;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: #020617;
  border-right: 1px solid #1e293b;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 20px;
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #facc15, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-weight: 800;
}

.sidebar-logo-text {
  font-weight: 700;
  color: #e5e7eb;
}

.sidebar-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #6b7280;
  padding: 6px 10px;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav li a {
  display: block;
  padding: 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  color: #9ca3af;
  text-decoration: none;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: #111827;
  color: #e5e7eb;
}

/* MAIN AREA */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 56px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(15,23,42,0.95);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.topbar-title {
  font-weight: 600;
  color: #e2e8f0;
}

.topbar-right a {
  color: #f87171;
  text-decoration: none;
  font-size: 0.9rem;
}
.topbar-right a:hover {
  text-decoration: underline;
}

.content {
  padding: 20px;
}

.card {
  background: #0f172a;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #1f2937;
  box-shadow: 0 10px 25px rgba(15,23,42,0.6);
}

.card h3 {
  margin-top: 0;
  color: #e5e7eb;
}

.btn-secondary {
  padding: 8px 14px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 999px;
  border: 1px solid #1f2937;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #1f2937;
}

.msg {
  padding: 10px;
  background: #064e3b;
  color: #bbf7d0;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .panel-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-section-title, .sidebar-nav { display: none; }
}
