/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
  width: 270px;
  height: 100vh;
  flex-shrink: 0;

  background: linear-gradient(180deg, #0f172a, #111827);

  color: white;

  padding: 24px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  overflow-y: auto;
}

.sidebar-logo h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 36px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar-nav a {
  color: #cbd5e1;

  padding: 14px 16px;

  border-radius: 12px;

  font-size: 15px;
  font-weight: 500;

  transition: 0.2s ease;

  margin-bottom: 10px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: #2563eb;
  color: white;

  transform: translateX(4px);
}

/* =========================================================
   ADMIN SECTION
========================================================= */

.admin-section {
  margin-top: 28px;
  padding-top: 22px;

  border-top: 1px solid #334155;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-section h3 {
  color: #94a3b8;

  font-size: 13px;

  text-transform: uppercase;

  letter-spacing: 1px;

  margin-bottom: 6px;

  padding-left: 6px;
}

.admin-only {
  color: #f1f5f9 !important;

  background: rgba(37, 99, 235, 0.12);

  border: 1px solid rgba(59, 130, 246, 0.2);
}

.admin-only:hover {
  background: #2563eb !important;
  color: white !important;

  transform: translateX(4px);
}

/* =========================================================
   USER BOX
========================================================= */

.user-box {
  background: white;

  padding: 14px 18px;

  border-radius: 16px;

  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);

  display: flex;
  align-items: center;
  gap: 12px;
}

.role-badge {
  background: #2563eb;
  color: white;

  padding: 7px 12px;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 600;
}

/* =========================================================
   CARDS & PANELS
========================================================= */

.card,
.panel {
  background: white;

  padding: 24px;

  border-radius: 20px;

  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  color: #64748b;

  font-size: 15px;

  margin-bottom: 14px;
}

.number {
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
}

/* =========================================================
   DASHBOARD / INFOBOARD
========================================================= */

.dashboard {
  flex: 1;
  height: 100vh;
  padding: 34px;
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}

.dashboard-header h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.dashboard-header p {
  color: #6b7280;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.task-list li,
.material-list li {
  padding: 15px 16px;
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 15px;
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .dashboard {
    padding: 22px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SIDEBAR FOOTER
========================================================= */

.sidebar-footer {
  margin-top: 30px;
}

.sidebar-footer button {
  width: 100%;

  padding: 13px;

  border-radius: 12px;

  background: #ef4444;

  color: white;

  font-weight: 600;

  transition: 0.2s;
}

.sidebar-footer button:hover {
  background: #dc2626;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-box > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.studio-selector {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-weight: 700;
}

.studio-selector:focus {
  outline: none;
  border-color: #2563eb;
  background: white;
}

.version-link {
  display: block;
  margin-top: 14px;

  color: #94a3b8;

  font-size: 12px;
  font-weight: 700;

  text-align: center;
}

.version-link:hover {
  color: white;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
  }

  body {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    height: auto;
  }
}
