/* ═══════════════════════════════════════════
   InternConnect – Global Design System
   Palette: Slate #0f172a  ·  Blue #2563eb
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
  --slate:       #0f172a;
  --slate-800:   #1e293b;
  --slate-700:   #334155;
  --slate-500:   #64748b;
  --slate-400:   #94a3b8;
  --slate-200:   #e2e8f0;
  --slate-100:   #f1f5f9;
  --slate-50:    #f8fafc;
  --blue:        #2563eb;
  --blue-700:    #1d4ed8;
  --blue-100:    #dbeafe;
  --blue-50:     #eff6ff;
  --white:       #ffffff;
  --green:       #10b981;
  --green-100:   #d1fae5;
  --amber:       #f59e0b;
  --amber-100:   #fef3c7;
  --red:         #ef4444;
  --red-100:     #fee2e2;
  --purple:      #8b5cf6;
  --purple-100:  #ede9fe;
  --sidebar-w:   240px;
  --header-h:    64px;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--slate-100);
  color: var(--slate-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--slate);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  overflow-y: auto;
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-logo .logo-icon {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar-logo .logo-text {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.2px;
}
.sidebar-logo .logo-text span { color: var(--blue); }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-400);
  padding: 10px 8px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--slate-400);
  font-size: 13px;
  font-weight: 400;
  transition: all .15s;
  cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active {
  background: var(--blue);
  color: #fff;
  font-weight: 500;
}
.nav-item i { width: 16px; text-align: center; font-size: 13px; }

.nav-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 12px 0;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.sidebar-help {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--slate-400);
  font-size: 12px;
}
.sidebar-help i { font-size: 14px; }
.sidebar-help strong { display: block; font-weight: 500; color: var(--slate-300, #cbd5e1); font-size: 12px; }
.sidebar-help span { font-size: 11px; }

/* ── Main Area ── */
.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ── Header ── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}
.auth-header img[alt="InternConnect Logo"] {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain;
  flex-shrink: 0;
}
.header img[alt="InternConnect Logo"] {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar-logo img[alt="InternConnect Logo"],
img[alt="InternConnect Logo"] {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  flex-shrink: 0;
}
.header-search {
  flex: 1;
  max-width: 380px;
  min-width: 220px;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap i {
  position: absolute;
  left: 12px;
  color: var(--slate-400);
  font-size: 13px;
}
.search-wrap input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-size: 13px;
  color: var(--slate-800);
  outline: none;
  transition: border-color .15s;
}
.search-wrap input:focus { border-color: var(--blue); background: #fff; }
.search-wrap input::placeholder { color: var(--slate-400); }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sidebar-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-700);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--slate-50); }
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .48);
  border: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 190;
}
.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sidebar.is-open {
  transform: translateX(0);
}
.header-icon-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--slate-100);
  color: var(--slate-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: background .15s;
}
.header-icon-btn:hover { background: var(--slate-200); }
.badge-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
}

.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-size: 12px;
  color: var(--slate-600, #475569);
  font-weight: 500;
}
.lang-btn img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 6px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 99px;
  cursor: pointer;
}
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.user-info { line-height: 1.2; }
.user-info .name { font-size: 12px; font-weight: 600; color: var(--slate-800); }
.user-info .role { font-size: 10px; color: var(--slate-500); }

/* ── Content ── */
.content {
  padding: 28px;
  flex: 1;
  min-width: 0;
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-body { padding: 20px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-200);
}
.card-header h3 { font-size: 15px; font-weight: 600; }

/* ── Stat Cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.stat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.stat-icon.blue   { background: var(--blue-100);   color: var(--blue); }
.stat-icon.green  { background: var(--green-100);  color: var(--green); }
.stat-icon.amber  { background: var(--amber-100);  color: var(--amber); }
.stat-icon.purple { background: var(--purple-100); color: var(--purple); }
.stat-icon.red    { background: var(--red-100);    color: var(--red); }

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-trend {
  font-size: 11px;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-trend.up   { color: var(--green); }
.stat-trend.down { color: var(--red); }

/* ── Link Button ── */
.link-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none; border: none;
  padding: 0;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  transition: all .15s;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-700); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--slate-200);
  color: var(--slate-700);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-ghost {
  background: transparent;
  color: var(--slate-600, #475569);
}
.btn-ghost:hover { background: var(--slate-100); }

.btn-danger {
  background: var(--red-100);
  color: var(--red);
}
.btn-danger:hover { background: #fca5a5; }

.btn-success {
  background: var(--green-100);
  color: var(--green);
}
.btn-success:hover { background: #6ee7b7; }

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 6px;
}
.btn-lg {
  padding: 11px 24px;
  font-size: 14px;
  border-radius: 10px;
}
.btn-full { width: 100%; }

.btn-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  padding: 0;
  background: var(--slate-100);
  color: var(--slate-500);
  border: 1px solid var(--slate-200);
}
.btn-icon:hover { background: var(--blue-50); color: var(--blue); border-color: var(--blue); }

/* ═══════════════════════════════════════════
   FORMS
═══════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
}
.form-control {
  padding: 9px 12px;
  border: 1.5px solid var(--slate-200);
  border-radius: 8px;
  font-size: 13px;
  color: var(--slate-800);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-control::placeholder { color: var(--slate-400); }
.form-control.with-icon { padding-left: 38px; }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .input-icon {
  position: absolute;
  left: 12px;
  color: var(--slate-400);
  font-size: 13px;
  pointer-events: none;
}
.input-wrap .input-action {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--slate-400);
  font-size: 12px;
  cursor: pointer;
}

.form-hint {
  font-size: 11px;
  color: var(--slate-500);
}
.form-hint.error { color: var(--red); }
.form-hint.success { color: var(--green); }

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

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ═══════════════════════════════════════════
   BADGES / STATUS
═══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-blue      { background: var(--blue-100);   color: var(--blue); }
.badge-green     { background: var(--green-100);  color: #059669; }
.badge-amber     { background: var(--amber-100);  color: #b45309; }
.badge-red       { background: var(--red-100);    color: #dc2626; }
.badge-purple    { background: var(--purple-100); color: #7c3aed; }
.badge-slate     { background: var(--slate-200);  color: var(--slate-600, #475569); }

/* ═══════════════════════════════════════════
   TABLES
═══════════════════════════════════════════ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
}
tbody td {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--slate-50); }

.student-avatar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.av-blue   { background: var(--blue); }
.av-green  { background: var(--green); }
.av-purple { background: var(--purple); }
.av-amber  { background: var(--amber); }
.av-red    { background: var(--red); }

/* ═══════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--slate-200);
}
.pagination-info { font-size: 12px; color: var(--slate-500); }
.pagination-controls { display: flex; align-items: center; gap: 4px; }
.page-btn {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-600, #475569);
  cursor: pointer;
  transition: all .15s;
}
.page-btn:hover, .page-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ═══════════════════════════════════════════
   PROGRESS / STRENGTH
═══════════════════════════════════════════ */
.progress-bar {
  height: 6px;
  background: var(--slate-200);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--blue);
  transition: width .4s ease;
}
.progress-fill.green { background: var(--green); }

/* Circular progress */
.ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ring-label {
  position: absolute;
  text-align: center;
  line-height: 1.2;
}
.ring-label .pct  { font-size: 18px; font-weight: 700; color: var(--slate-800); }
.ring-label .text { font-size: 10px; color: var(--slate-500); font-weight: 500; }

/* ═══════════════════════════════════════════
   SKILL TAGS
═══════════════════════════════════════════ */
.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border: 1.5px solid var(--slate-200);
  border-radius: 8px;
  min-height: 42px;
  align-items: center;
  background: #fff;
  cursor: text;
}
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 99px;
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
}
.skill-tag .remove {
  background: none; border: none;
  color: var(--blue); cursor: pointer;
  font-size: 11px; padding: 0; line-height: 1;
}

/* ═══════════════════════════════════════════
   FILE UPLOAD
═══════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--slate-200);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--blue);
  background: var(--blue-50);
}
.upload-zone i { font-size: 32px; color: var(--blue); margin-bottom: 10px; display: block; }
.upload-zone .upload-text { font-size: 14px; font-weight: 500; color: var(--slate-700); margin-bottom: 4px; }
.upload-zone .upload-hint { font-size: 12px; color: var(--slate-500); }

.doc-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
}
.doc-icon { font-size: 18px; }
.doc-icon.pdf   { color: var(--red); }
.doc-icon.docx  { color: var(--blue); }
.doc-icon.xlsx  { color: var(--green); }
.doc-info { flex: 1; }
.doc-name { font-size: 13px; font-weight: 500; color: var(--slate-800); }
.doc-meta { font-size: 11px; color: var(--slate-500); }
.doc-actions { display: flex; gap: 6px; }

/* ═══════════════════════════════════════════
   TOGGLES
═══════════════════════════════════════════ */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
}
.toggle-info { display: flex; align-items: center; gap: 12px; }
.toggle-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.toggle-text strong { display: block; font-size: 13px; font-weight: 500; color: var(--slate-800); }
.toggle-text span { font-size: 12px; color: var(--slate-500); }
.toggle {
  width: 44px; height: 24px;
  background: var(--slate-300, #cbd5e1);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  border: none;
  flex-shrink: 0;
}
.toggle.on { background: var(--blue); }
.toggle::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle.on::after { transform: translateX(20px); }

/* ═══════════════════════════════════════════
   TABS
═══════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--slate-200);
  margin-bottom: 24px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.tab-btn:hover { color: var(--slate-700); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ═══════════════════════════════════════════
   INTERNSHIP CARDS (Browse)
═══════════════════════════════════════════ */
.internship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.intern-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .15s, border-color .15s;
  min-width: 0;
}
.intern-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue); }
.intern-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.company-logo {
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-50);
}
.bookmark-btn {
  background: none; border: none;
  color: var(--slate-300, #cbd5e1);
  font-size: 16px; cursor: pointer;
  transition: color .15s;
}
.bookmark-btn:hover, .bookmark-btn.saved { color: var(--blue); }
.intern-title { font-size: 14px; font-weight: 600; color: var(--slate-800); }
.intern-company { font-size: 12px; color: var(--slate-500); }
.intern-location { font-size: 12px; color: var(--slate-500); display: flex; align-items: center; gap: 4px; }
.intern-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.intern-closing { font-size: 11px; color: var(--slate-500); }

/* ═══════════════════════════════════════════
   FILTERS ROW
═══════════════════════════════════════════ */
.filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-select {
  padding: 7px 32px 7px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 7px;
  font-size: 13px;
  color: var(--slate-700);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: var(--blue); }

/* ═══════════════════════════════════════════
   PLACEMENT TRACKING (Company)
═══════════════════════════════════════════ */
.eval-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.eval-label { font-size: 12px; color: var(--slate-600, #475569); width: 120px; flex-shrink: 0; }
.eval-bar-wrap { flex: 1; height: 6px; background: var(--slate-200); border-radius: 99px; overflow: hidden; }
.eval-bar { height: 100%; border-radius: 99px; background: var(--blue); }
.eval-score { font-size: 12px; font-weight: 600; color: var(--slate-800); width: 50px; text-align: right; }

/* ═══════════════════════════════════════════
   PROFILE BANNER
═══════════════════════════════════════════ */
.profile-banner {
  height: 140px;
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-700) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  overflow: hidden;
}
.profile-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.3) 0%, transparent 60%);
}
.profile-banner-actions {
  position: absolute;
  top: 12px; right: 14px;
}
.banner-logo {
  width: 80px; height: 80px;
  border-radius: 12px;
  background: #fff;
  border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  box-shadow: var(--shadow-md);
  position: absolute;
  bottom: -20px; left: 20px;
}

/* ═══════════════════════════════════════════
   CHECKLIST
═══════════════════════════════════════════ */
.checklist { display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-700);
}
.check-item i { font-size: 14px; }
.check-item i.fa-check { color: var(--green); }
.check-item i.fa-circle { color: var(--slate-300, #cbd5e1); }

/* ═══════════════════════════════════════════
   DONUT CHART (CSS-only)
═══════════════════════════════════════════ */
.donut-wrap { position: relative; width: 100px; height: 100px; }
.donut-wrap svg { transform: rotate(-90deg); }
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.donut-center .num { font-size: 22px; font-weight: 700; color: var(--slate-800); }
.donut-center .lbl { font-size: 10px; color: var(--slate-500); }

.legend { display: flex; flex-direction: column; gap: 6px; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--slate-600, #475569); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   ACTIVITY FEED
═══════════════════════════════════════════ */
.activity-feed { display: flex; flex-direction: column; gap: 10px; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-text { font-size: 12px; color: var(--slate-700); line-height: 1.4; }
.activity-time { font-size: 11px; color: var(--slate-400); }

/* ═══════════════════════════════════════════
   AUTH PAGE
═══════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid var(--slate-100);
}
.auth-body {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}
.auth-deco {
  position: absolute;
  top: 0; left: 0;
  width: 320px; height: 320px;
  pointer-events: none;
}
.auth-deco-line {
  position: absolute;
  background: var(--blue);
  opacity: .12;
  border-radius: 2px;
  height: 3px;
  transform-origin: left center;
}
.auth-form-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-roles-col {
  width: 300px;
  border-left: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
}
.auth-card h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 6px;
}
.auth-card .sub {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 24px;
}
.auth-footer-text {
  font-size: 12px;
  color: var(--slate-500);
  text-align: center;
  margin-top: 16px;
}
.auth-footer-text a { color: var(--blue); font-weight: 500; }

.role-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 10px;
  text-align: left;
}
.role-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.role-btn i { font-size: 16px; width: 20px; text-align: center; }

.role-signup-btns { display: flex; gap: 10px; }
.role-signup-btn {
  flex: 1; padding: 10px;
  border: 1.5px solid var(--slate-200);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.role-signup-btn:hover, .role-signup-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-50);
}

.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--slate-200);
}
.auth-divider span { font-size: 12px; color: var(--slate-400); }

/* ═══════════════════════════════════════════
   ROLE SWITCHER (Dev Tool)
═══════════════════════════════════════════ */
#dev-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: var(--slate);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
#dev-switcher .dev-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
}
.dev-role-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-400);
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all .15s;
}
.dev-role-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.dev-role-btn.current { background: var(--blue); color: #fff; }
.dev-role-btn i { width: 14px; text-align: center; }

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.flex          { display: flex; }
.flex-col      { display: flex; flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-1  { margin-bottom: 4px; }
.mb-2  { margin-bottom: 8px; }
.mb-3  { margin-bottom: 12px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mt-1  { margin-top: 4px; }
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.text-sm   { font-size: 12px; }
.text-base { font-size: 14px; }
.text-lg   { font-size: 16px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.text-muted { color: var(--slate-500); }
.text-blue  { color: var(--blue); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-amber { color: var(--amber); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.main-side { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.w-full { width: 100%; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--slate-500); margin-bottom: 20px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: var(--slate-400); }

.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.internship-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.main-side { grid-template-columns: minmax(0, 1fr) 300px; }

/* ═══════════════════════════════════════════
   MODAL
═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--white); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  width: 100%; max-width: 540px; overflow: hidden;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--slate-200);
}
.modal-header h2 { font-size: 16px; font-weight: 700; color: var(--slate-800); margin: 0; }
.modal-close {
  background: none; border: none; cursor: pointer; padding: 4px 8px;
  color: var(--slate-400); font-size: 18px; border-radius: 6px;
  transition: background .15s;
}
.modal-close:hover { background: var(--slate-100); color: var(--slate-700); }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 22px; border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--slate-600); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 12px; border: 1px solid var(--slate-200); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--slate-800);
  background: var(--white); transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-section-label {
  font-size: 11px; font-weight: 700; color: var(--slate-400);
  text-transform: uppercase; letter-spacing: .06em;
  padding-bottom: 6px; border-bottom: 1px solid var(--slate-100);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .internship-grid { grid-template-columns: repeat(2, 1fr); }
  .main-side { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .header {
    height: auto;
    padding: 14px 16px;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .header-right {
    margin-left: 0;
    width: 100%;
  }

  .form-row,
  .two-col,
  .three-col,
  .stats-grid,
  .internship-grid,
  .main-side {
    grid-template-columns: 1fr;
  }

  .filters-row,
  .card-header {
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 20px 0 40px rgba(15, 23, 42, .2);
  }

  .sidebar.is-open { transform: translateX(0); }

  .main-area { margin-left: 0; }
  .content { padding: 16px; }
  .header-right {
    gap: 10px;
  }
  .lang-btn {
    padding: 6px 8px;
  }
  .user-chip .user-info {
    display: none;
  }
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }
  .filters-row .filter-select,
  .filters-row .btn,
  .filters-row #results-count {
    width: 100%;
    margin-left: 0 !important;
  }
  .card-header {
    flex-direction: column;
    gap: 10px;
  }
  .card-body {
    padding: 16px;
  }
  table {
    min-width: 640px;
  }
  .table-wrap {
    margin-right: -16px;
  }
  .auth-header,
  .auth-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .auth-form-col,
  .auth-roles-col {
    padding: 24px 16px;
  }
}
