/* Professional product UI layer inspired by modern design tools. */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f3f5f7;
  --surface-tint: #f7fbfa;
  --text: #15171a;
  --muted: #69707a;
  --accent: #5f7f73;
  --accent-dark: #47665b;
  --accent-soft: #e8f0ed;
  --border: #e2e5e9;
  --border-strong: #d3d8de;
  --danger: #b34848;
  --success: #2f7154;
  --warning: #9a6a16;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.035), 0 1px 8px rgba(15, 23, 42, 0.025);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.075);
  --radius-sm: 9px;
  --radius: 13px;
  --radius-lg: 18px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(95, 127, 115, 0.055), transparent 30%),
    var(--bg);
}

.topbar {
  min-height: 72px;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  background: rgba(250, 251, 252, 0.88);
  border-bottom-color: rgba(222, 226, 231, 0.9);
}

.topbar h1 {
  font-size: clamp(1.25rem, 2.6vw, 1.72rem);
  letter-spacing: -0.03em;
}

.eyebrow {
  color: #8a7354;
  letter-spacing: 0.16em;
}

.tabs {
  gap: 0.35rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  background: rgba(255,255,255,0.92);
}

.tab {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.62rem 0.78rem;
  font-size: 0.86rem;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.tab:hover {
  background: var(--surface-soft);
}

.tab.active {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-top: 1.25rem;
}

.card,
.stat-card {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.card {
  padding: 1.1rem;
}

.card-heading {
  align-items: center;
  margin-bottom: 0.85rem;
}

.card-heading h2,
.dashboard-schedule-heading h2 {
  font-size: 1rem;
  font-weight: 650;
}

.card-heading p {
  font-size: 0.8rem;
}

.button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.button:hover {
  transform: translateY(-0.5px);
}

.button-secondary {
  background: rgba(255,255,255,0.92);
}

input,
select,
textarea {
  border-radius: 8px;
  min-height: 40px;
  padding: 0.65rem 0.72rem;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8aa89d;
  box-shadow: 0 0 0 3px rgba(95, 127, 115, 0.12);
}

.student-toolbar {
  gap: 0.5rem;
}

.student-card-grid {
  gap: 0.75rem;
}

.student-card {
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: none;
}

.student-card:hover {
  transform: translateY(-2px);
  border-color: #ccd4d0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.student-card-kicker {
  color: var(--accent-dark);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.student-card h3 {
  font-size: 1rem;
}

.student-card-body {
  gap: 0.65rem;
}

.student-detail-label {
  font-size: 0.63rem;
}

.student-detail-value {
  font-size: 0.85rem;
}

.student-card-footer {
  background: #fafbfc;
  border-top-color: #e8eaed;
}

.badge {
  border: 1px solid transparent;
  padding: 0.2rem 0.45rem;
}

.badge.success {
  border-color: #d4e7dc;
}

.badge.warning {
  border-color: #f2dfb6;
}

.statistics-disclosure {
  overflow: hidden;
}

.statistics-disclosure > summary {
  min-height: 48px;
}

.statistics-disclosure[open] > summary {
  border-bottom: 1px solid var(--border);
}

.statistics-content {
  background: #fbfcfd;
}

.student-modal-overlay {
  background: rgba(17, 24, 39, 0.48);
}

.student-modal-card {
  width: min(760px, calc(100vw - 1.5rem));
  border-radius: 16px;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.26);
}

.student-modal-card > .card-heading {
  padding: 1.05rem 1.2rem;
  background: linear-gradient(135deg, #eef4f1 0%, #f8f6f1 100%);
}

.student-edit-tabs {
  top: 76px;
  gap: 0.25rem;
  padding-top: 0.55rem;
  background: rgba(255,255,255,0.96);
}

.student-edit-tab {
  border-radius: 7px 7px 0 0;
  padding: 0.6rem 0.78rem;
  font-size: 0.84rem;
}

.student-edit-tab.active {
  background: var(--accent-soft);
}

.student-edit-panel {
  padding-top: 1rem;
}

.login-dropdown,
.user-dropdown {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.13);
}

.list-item,
.invoice-customer {
  border-radius: 10px;
}

.empty-state {
  border-radius: 10px;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
  }

  .container {
    width: min(100% - 1rem, 1180px);
  }

  .card {
    padding: 0.95rem;
  }
}
