/* ============================================
   College Placement Portal - Main Stylesheet
   Aesthetic: Refined Corporate with Bold Accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --primary: #0a2540;
  --primary-light: #1a3a5c;
  --accent: #ff6b35;
  --accent-light: #ff8c5a;
  --teal: #00c9a7;
  --gold: #f5c842;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface2: #f0f4ff;
  --border: #e2e8f0;
  --text: #0a2540;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 3px rgba(10,37,64,0.08);
  --shadow-md: 0 4px 16px rgba(10,37,64,0.12);
  --shadow-lg: 0 12px 40px rgba(10,37,64,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--primary);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--primary);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 12px rgba(10,37,64,0.25);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand span { color: var(--accent); }

.navbar-links { display: flex; align-items: center; gap: 1rem; }

.navbar-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.navbar-links a:hover, .navbar-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--surface2);
}

.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #dc2626; }

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover { background: #059669; }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,37,64,0.08);
}
.form-control::placeholder { color: var(--text-light); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }

/* ---- CARDS ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 1rem; font-weight: 700; }

.card-body { padding: 1.5rem; }

/* ---- BADGE ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-primary { background: rgba(10,37,64,0.08); color: var(--primary); }
.badge-accent { background: rgba(255,107,53,0.12); color: var(--accent); }
.badge-success { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.12); color: var(--danger); }
.badge-teal { background: rgba(0,201,167,0.12); color: var(--teal); }

/* ---- ALERTS ---- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(16,185,129,0.1); color: #065f46; border: 1px solid rgba(16,185,129,0.25); }
.alert-danger { background: rgba(239,68,68,0.1); color: #991b1b; border: 1px solid rgba(239,68,68,0.25); }
.alert-warning { background: rgba(245,158,11,0.1); color: #92400e; border: 1px solid rgba(245,158,11,0.25); }
.alert-info { background: rgba(10,37,64,0.06); color: var(--primary); border: 1px solid rgba(10,37,64,0.12); }

/* ---- TABLE ---- */
.table-wrapper { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead tr { background: var(--surface2); }
thead th {
  padding: 11px 14px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--border);
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
tbody tr:hover { background: var(--surface2); }
tbody td { padding: 12px 14px; color: var(--text); }
tbody tr:last-child { border-bottom: none; }

/* ---- DASHBOARD LAYOUT ---- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

.sidebar {
  background: var(--primary);
  padding: 2rem 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-section {
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 0.75rem;
  margin-bottom: 0.4rem;
  margin-top: 1.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.main-content {
  padding: 2rem;
  overflow-y: auto;
}

/* ---- STATS GRID ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.accent::before { background: var(--accent); }
.stat-card.teal::before { background: var(--teal); }
.stat-card.gold::before { background: var(--gold); }
.stat-card.primary::before { background: var(--primary); }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.stat-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* ---- PAGE HEADER ---- */
.page-header {
  margin-bottom: 2rem;
}
.page-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; }
.page-header p { color: var(--text-muted); font-size: 0.95rem; }

/* ---- JOB CARD ---- */
.job-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all 0.2s;
  position: relative;
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(10,37,64,0.2);
}
.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.job-company { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.job-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.job-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--text-muted); }
.job-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.skill-chip {
  padding: 3px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.job-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }

/* ---- AUTH PAGES ---- */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
}

.auth-brand {
  position: absolute;
  top: 2rem; left: 2rem;
}

.auth-illustration {
  background: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-illustration::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,107,53,0.12);
  top: -100px; right: -100px;
}
.auth-illustration::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(0,201,167,0.1);
  bottom: -50px; left: -50px;
}

.auth-illustration-content { position: relative; z-index: 1; }
.auth-illustration h2 { font-size: 2rem; color: #fff; margin-bottom: 1rem; }
.auth-illustration p { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 320px; line-height: 1.7; }
.auth-illustration .big-icon { font-size: 5rem; margin-bottom: 1.5rem; }

.auth-form-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.4rem; }
.auth-form-subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }
.auth-form-link { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }

/* ---- HOMEPAGE ---- */
.hero {
  background: var(--primary);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
}

.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-title { font-size: 3.5rem; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 1rem; }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.65); margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.portal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(10,37,64,0.2);
}

.portal-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.portal-card.student .portal-icon { background: rgba(255,107,53,0.1); }
.portal-card.recruiter .portal-icon { background: rgba(10,37,64,0.08); }

.portal-card h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.portal-card p { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; line-height: 1.7; }
.portal-buttons { display: flex; gap: 1rem; justify-content: center; }

/* ---- PROFILE ---- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
  flex-shrink: 0;
}
.profile-info h2 { font-size: 1.4rem; margin-bottom: 4px; }
.profile-info p { color: var(--text-muted); font-size: 0.9rem; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---- ELIGIBLE STUDENTS SECTION ---- */
.eligible-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16,185,129,0.1);
  color: var(--success);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(16,185,129,0.2);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-illustration { display: none; }
  .portal-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
}

@media (max-width: 600px) {
  .main-content { padding: 1rem; }
  .auth-panel { padding: 2rem 1.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .navbar { padding: 0 1rem; }
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* Animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease; }