/* ============================================================
   UIMS — University Internship Management System
   Main Stylesheet
   Design: Academic-Professional with bold navy & gold palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --navy:        #0D1B3E;
  --navy-mid:    #162852;
  --navy-light:  #1E3A6E;
  --gold:        #C89B3C;
  --gold-light:  #E8C068;
  --gold-pale:   #FDF3DC;
  --white:       #FFFFFF;
  --off-white:   #F7F8FC;
  --surface:     #FFFFFF;
  --border:      #E2E8F0;
  --text-dark:   #0D1B3E;
  --text-mid:    #4A5568;
  --text-light:  #718096;
  --success:     #1A8754;
  --success-bg:  #D1FAE5;
  --warning:     #B45309;
  --warning-bg:  #FEF3C7;
  --danger:      #B91C1C;
  --danger-bg:   #FEE2E2;
  --info:        #1D4ED8;
  --info-bg:     #DBEAFE;
  --sidebar-w:   260px;
  --header-h:    64px;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(13,27,62,0.08);
  --shadow:      0 4px 16px rgba(13,27,62,0.12);
  --shadow-lg:   0 8px 32px rgba(13,27,62,0.16);
  --transition:  all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

.display-font { font-family: 'Playfair Display', serif; }

/* ── LOGIN PAGE ────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 60%, #2D5499 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(200,155,60,0.08);
}

.login-hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -60px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(200,155,60,0.05);
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 60px;
  z-index: 1;
}

.hero-logo-icon {
  width: 52px; height: 52px;
  background: var(--gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}

.hero-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.hero-logo-text span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-top: 1px;
}

.hero-tagline {
  z-index: 1;
}

.hero-tagline h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-tagline h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-tagline p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 380px;
  line-height: 1.7;
}

.hero-features {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.hero-feature-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Login Form Panel */
.login-panel {
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
}

.login-form-wrap {
  width: 100%;
  max-width: 420px;
}

.login-form-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.login-form-wrap .subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

/* ── Forms ─────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(30,58,110,0.08);
}

.form-control::placeholder { color: var(--text-light); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .form-control {
  padding-left: 42px;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 5px;
}

.form-error {
  font-size: 0.82rem;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

.form-error.visible { display: block; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--off-white);
  color: var(--text-dark);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: transparent;
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: transparent;
}

.btn-success:hover {
  background: var(--success);
  color: white;
}

.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Dashboard Layout ──────────────────────────────────── */
.dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-user {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.avatar-lg {
  width: 64px; height: 64px;
  font-size: 1.2rem;
}

.avatar-xl {
  width: 88px; height: 88px;
  font-size: 1.6rem;
}

.sidebar-user-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-section-label {
  padding: 10px 24px 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.nav-item.active {
  background: rgba(200,155,60,0.12);
  color: var(--gold-light);
  border-left-color: var(--gold);
}

.nav-icon {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px 0;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
}

.logout-btn:hover { color: #FC8181; }

/* Main Content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.topbar-subtitle { font-size: 0.8rem; color: var(--text-light); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-mid);
  transition: var(--transition);
  font-size: 1.1rem;
}

.notif-btn:hover { background: var(--off-white); }

.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  border: 1.5px solid white;
}

.page-content {
  padding: 28px 32px;
  flex: 1;
}

/* ── Page Header ───────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header-left h1 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.page-header-left p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.breadcrumb a { color: var(--navy-light); }
.breadcrumb span { color: var(--text-light); }

/* ── Stat Cards ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.stat-card-accent.navy  { background: var(--navy); }
.stat-card-accent.gold  { background: var(--gold); }
.stat-card-accent.green { background: var(--success); }
.stat-card-accent.red   { background: var(--danger); }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.stat-icon.navy  { background: rgba(13,27,62,0.08);  color: var(--navy); }
.stat-icon.gold  { background: rgba(200,155,60,0.12); color: var(--gold); }
.stat-icon.green { background: var(--success-bg);     color: var(--success); }
.stat-icon.red   { background: var(--danger-bg);      color: var(--danger); }
.stat-icon.blue  { background: var(--info-bg);        color: var(--info); }

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-change {
  font-size: 0.78rem;
  margin-top: 8px;
  font-weight: 600;
}

.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-header h3 { color: var(--navy); }

.card-body { padding: 24px; }

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--off-white);
}

/* ── Grid layouts ──────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── Tables ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dark);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(13,27,62,0.02); }

.table-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Badges / Status Tags ──────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-success  { background: var(--success-bg); color: var(--success); }
.badge-warning  { background: var(--warning-bg); color: var(--warning); }
.badge-danger   { background: var(--danger-bg);  color: var(--danger); }
.badge-info     { background: var(--info-bg);    color: var(--info); }
.badge-navy     { background: rgba(13,27,62,0.08); color: var(--navy); }
.badge-gold     { background: rgba(200,155,60,0.15); color: #8B6914; }
.badge-gray     { background: #EDF2F7; color: var(--text-mid); }

/* ── Progress ──────────────────────────────────────────── */
.progress-bar-wrap {
  background: var(--border);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 20px;
  background: var(--navy);
  transition: width 0.5s ease;
}

.progress-bar.gold   { background: var(--gold); }
.progress-bar.green  { background: var(--success); }

/* Stage Progress */
.stage-list { display: flex; flex-direction: column; gap: 16px; }

.stage-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.stage-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -16px;
  width: 2px;
  background: var(--border);
}

.stage-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--white);
  color: var(--text-light);
  z-index: 1;
}

.stage-circle.completed {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.stage-circle.in-progress {
  background: var(--info-bg);
  border-color: var(--info);
  color: var(--info);
  animation: pulse-ring 2s ease infinite;
}

.stage-circle.pending {
  background: var(--off-white);
  border-color: var(--border);
  color: var(--text-light);
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29,78,216,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(29,78,216,0); }
}

.stage-content { flex: 1; padding-top: 8px; }
.stage-title { font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.stage-desc { font-size: 0.82rem; color: var(--text-light); margin-top: 2px; }
.stage-date { font-size: 0.78rem; color: var(--text-light); margin-top: 6px; }

/* ── Alerts / Notices ──────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.alert-success { background: var(--success-bg); color: #065F46; border-left: 4px solid var(--success); }
.alert-warning { background: var(--warning-bg); color: #92400E; border-left: 4px solid var(--warning); }
.alert-danger  { background: var(--danger-bg);  color: #991B1B; border-left: 4px solid var(--danger); }
.alert-info    { background: var(--info-bg);    color: #1E40AF; border-left: 4px solid var(--info); }

.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Rating Stars ──────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  font-size: 0.9rem;
}

.stars .empty { color: var(--border); }

/* Star rating input */
.star-input {
  display: flex;
  gap: 4px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-input input { display: none; }

.star-input label {
  font-size: 1.6rem;
  color: var(--border);
  cursor: pointer;
  transition: color 0.15s;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--gold);
}

/* ── Modals ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,27,62,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal { transform: none; }

.modal-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { color: var(--navy); }

.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--off-white);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: var(--danger-bg); color: var(--danger); }

.modal-body  { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Quick Action Cards ────────────────────────────────── */
.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.action-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.action-card:hover {
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.action-card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.action-card-icon.navy  { background: rgba(13,27,62,0.08);  color: var(--navy); }
.action-card-icon.gold  { background: rgba(200,155,60,0.12); color: var(--gold); }
.action-card-icon.green { background: var(--success-bg);     color: var(--success); }
.action-card-icon.blue  { background: var(--info-bg);        color: var(--info); }

.action-card h4 { font-size: 0.88rem; color: var(--navy); }
.action-card p  { font-size: 0.78rem; color: var(--text-light); }

/* ── Profile Layout ────────────────────────────────────── */
.profile-header-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.profile-header-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(200,155,60,0.08);
}

.profile-header-info h2 {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.profile-header-info .role-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.profile-header-info p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
}

/* ── Internship info banner ────────────────────────────── */
.internship-banner {
  background: var(--gold-pale);
  border: 1px solid rgba(200,155,60,0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.internship-banner-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.internship-banner-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--navy);
}

.internship-banner-text h4 { color: var(--navy); margin-bottom: 3px; }
.internship-banner-text p  { font-size: 0.82rem; color: var(--text-mid); }

/* ── Filter bar ────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-bar .form-control {
  width: auto;
  min-width: 180px;
  padding: 9px 14px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrap input {
  padding-left: 38px;
}

.search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ── File upload zone ──────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--off-white);
}

.upload-zone:hover {
  border-color: var(--navy-light);
  background: var(--info-bg);
}

.upload-zone p { font-size: 0.88rem; color: var(--text-light); margin-top: 8px; }
.upload-zone .upload-icon { font-size: 2rem; }

/* ── Score display ─────────────────────────────────────── */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
}

.score-badge.high   { background: var(--success-bg); color: var(--success); border: 2px solid var(--success); }
.score-badge.medium { background: var(--warning-bg); color: var(--warning); border: 2px solid var(--warning); }
.score-badge.low    { background: var(--danger-bg);  color: var(--danger);  border: 2px solid var(--danger); }

/* ── Toast notifications ───────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  min-width: 300px;
  border-left: 4px solid var(--navy);
  animation: slideIn 0.3s ease;
}

.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ── Empty state ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state h4 { color: var(--text-mid); margin-bottom: 6px; }
.empty-state p  { font-size: 0.88rem; }

/* ── Dividers & misc ───────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.flex  { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap { gap: 12px; }
.flex-wrap { flex-wrap: wrap; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--off-white);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

/* ── Login error message ───────────────────────────────── */
.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
  border-left: 3px solid var(--danger);
}

.login-error.show { display: block; }

/* Demo credentials box */
.demo-creds {
  margin-top: 24px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.demo-creds h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.demo-cred-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 4px 0;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}

.demo-cred-item:last-child { border-bottom: none; }
.demo-cred-item .role-name { font-weight: 600; color: var(--navy); }
.demo-cred-btn {
  font-size: 0.75rem;
  padding: 3px 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  color: var(--navy-light);
  transition: var(--transition);
}
.demo-cred-btn:hover { background: var(--navy); color: white; }

/* ── Sidebar toggle (mobile) ───────────────────────────── */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--navy);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { display: none; }

  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .sidebar-toggle { display: block; }
  .main-content { margin-left: 0; }

  .page-content { padding: 20px 16px; }
  .topbar { padding: 0 16px; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .action-cards { grid-template-columns: 1fr 1fr; }
  .profile-header-card { flex-direction: column; text-align: center; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .form-control { min-width: 0; width: 100%; }
}
