/* ═══════════════════════════════════════
   NestUp – Shared Stylesheet
   Import this in every HTML page:
   <link rel="stylesheet" href="css/styles.css">
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── Variables ── */
:root {
  --blue-900: #0a1628;
  --blue-800: #0f2044;
  --blue-700: #1a3a6e;
  --blue-600: #1e4d9b;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --white:    #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --success:  #10b981;
  --warning:  #f59e0b;
  --error:    #ef4444;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(10,22,40,0.08);
  --shadow-lg: 0 12px 48px rgba(10,22,40,0.14);
}

/* ── Reset ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-logo span { color: var(--blue-400); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover { background: var(--blue-50); color: var(--blue-600); }
.nav-link.active { background: var(--blue-50); color: var(--blue-600); }
.nav-link.primary {
  background: var(--blue-500);
  color: var(--white) !important;
  padding: 8px 18px;
}
.nav-link.primary:hover { background: var(--blue-600); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--blue-500); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.btn-outline { background: transparent; color: var(--blue-500); border: 1.5px solid var(--blue-300); }
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: transparent; color: var(--error); border: 1.5px solid #fca5a5; }
.btn-danger:hover { background: #fef2f2; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
textarea { resize: vertical; min-height: 100px; }
.input-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.badge-blue    { background: var(--blue-100); color: var(--blue-700); }
.badge-green   { background: #d1fae5; color: #065f46; }
.badge-orange  { background: #fef3c7; color: #92400e; }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }
.badge-red     { background: #fef2f2; color: #991b1b; }
.badge-admin   { font-size: 12px; font-weight: 600; background: var(--blue-100); color: var(--blue-700); padding: 4px 10px; border-radius: 20px; }

/* ── ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info    { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }

/* ── CHECKBOX ── */
.checkbox-group { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-group input[type="checkbox"] {
  width: 16px; min-width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--blue-500);
}
.checkbox-group label { font-size: 14px; color: var(--gray-600); cursor: pointer; }

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ── BACK BUTTON ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-500);
  cursor: pointer;
  margin-bottom: 24px;
  font-weight: 500;
  transition: color 0.15s;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  padding: 0;
  text-decoration: none;
}
.back-btn:hover { color: var(--blue-500); }

/* ── STAT CARD ── */
.stat-card { padding: 20px; cursor: default; }
.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 700;
}
.stat-blue   { color: var(--blue-600); }
.stat-green  { color: var(--success); }
.stat-yellow { color: var(--warning); }
.stat-red    { color: var(--error); }

/* ── PAGE FOOTER ── */
.page-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-400);
}

/* ── SECTION HEADING ── */
.section-heading {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 16px;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 28px; }
.page-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 6px;
}
.page-header p { color: var(--gray-500); font-size: 14px; }

/* ── ANIMATIONS ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  0%   { transform: scale(0.6); opacity: 0; }
  80%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}
.anim-slide-up { animation: slideUp 0.4s ease; }
.anim-pop      { animation: pop 0.5s 0.2s both; }

/* ── UTILS ── */
.w-full        { width: 100%; }
.text-center   { text-align: center; }
.flex          { display: flex; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .form-row { grid-template-columns: 1fr; }
  .page-footer { padding: 16px 20px; flex-direction: column; gap: 8px; }
}
