/* ============================================================
   INTERNSHIP PORTAL — MAIN STYLESHEET v2
   ============================================================ */

/* Fonts consolidated in header.php */



:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #0d0b1e;
  /* FIXED: was #0f0e17 in dev, production uses #0d0b1e */
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8f0;
  --text-muted: #9898b3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --purple: #8b5cf6;
}

/* ── Session Countdown ── */
.dash-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  color: #fff;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  min-width: 110px;
  backdrop-filter: blur(10px);
}

.clock-time {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #10b981;
  /* Primary Green */
  transition: color 0.3s ease;
}

.clock-time.warning {
  color: #f59e0b;
}

.clock-time.danger {
  color: #ef4444;
  animation: pulse-red 1s infinite alternate;
}

.clock-date {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.15rem;
}

@keyframes pulse-red {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@media (max-width: 768px) {
  .dash-clock {
    padding: 0.35rem 0.6rem;
    min-width: 80px;
  }

  .clock-time {
    font-size: 1rem;
  }

  .clock-date {
    display: none;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.14), transparent),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(139, 92, 246, 0.07), transparent);
  overflow-x: hidden;
}

/* ── Utilities ── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.letter-spacing {
  letter-spacing: 0.08em;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  will-change: transform, box-shadow;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

.hover-lift:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--shadow-lg);
}

/* ── Navbar ── */
.glass-nav {
  background: rgba(13, 11, 30, 0.85) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border) !important;
  padding: 0.7rem 0;
  z-index: 1000;
}

.glass-nav .navbar-brand {
  color: var(--text) !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.glass-nav .nav-link {
  color: var(--text-muted) !important;
  padding: 0.45rem 0.8rem !important;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.glass-nav .nav-link:hover,
.glass-nav .nav-link.active {
  color: var(--text) !important;
  background: var(--surface);
}

/* Also style old .navbar-custom class if used in header.php */
.navbar-custom {
  background: rgba(15, 14, 23, 0.88) !important;
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}

.navbar-custom .navbar-brand {
  color: #fff !important;
  font-weight: 700;
}

.navbar-custom .nav-link {
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.45rem 0.8rem !important;
  transition: var(--transition);
}

.navbar-custom .nav-link:hover {
  color: #fff !important;
  background: var(--surface);
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* Buttons in navbar */
.glass-btn {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
}

.glass-dropdown {
  background: rgba(20, 19, 32, 0.97) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
}

.glass-dropdown .dropdown-item {
  color: var(--text-muted) !important;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  margin: 0.1rem 0.4rem;
  font-size: 0.875rem;
  transition: var(--transition);
}

.glass-dropdown .dropdown-item:hover {
  background: var(--surface) !important;
  color: var(--text) !important;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
  overflow: hidden;
}

.avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Flash Alert ── */
.flash-banner {
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.alert-success {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  color: #6ee7b7 !important;
  border-radius: 14px !important;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
  border-radius: 14px !important;
}

.alert-info {
  background: rgba(6, 182, 212, 0.1) !important;
  border: 1px solid rgba(6, 182, 212, 0.25) !important;
  color: #67e8f9 !important;
  border-radius: 14px !important;
}

.btn-close {
  filter: invert(1) opacity(0.5);
}

/* ── Hero (home page) ── */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.min-vh-85 {
  min-height: 85vh;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
  top: -200px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent);
  bottom: -150px;
  left: -100px;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-lottie {
  position: relative;
  z-index: 1;
}

.badge-pill {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.stat-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Section ── */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border-bottom: 1px solid var(--border);
}

.companies-section {
  border-top: 1px solid var(--border);
}

.company-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto;
}

.company-logo.usualdev {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
}

.company-logo.grootz {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

/* ── Internship Card (home page / shared) ── */
.internship-card {
  padding: 1.25rem;
  cursor: default;
}

.company-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-usualdev {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-grootz {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.description-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  font-size: 0.72rem;
  padding: 0.22rem 0.6rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 500;
}

/* ── How it works ── */
.border-top-subtle {
  border-top: 1px solid var(--border);
}

.how-section {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.step-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  line-height: 1;
}

/* ── Auth pages (kept for old layout fallback) ── */
.auth-page {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  margin: auto;
}

.auth-card {
  max-width: 460px;
  width: 100%;
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-icon-lg {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  margin: 0 auto;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

/* ── Dashboard (legacy stat cards) ── */
.dashboard-page {
  background: var(--bg);
}

.stat-card {
  position: relative;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto;
}

.avatar-lg {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.btn-linkedin {
  background: #0a66c2 !important;
  border-color: #0a66c2 !important;
  color: white !important;
}

.interview-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── Admin ── */
.admin-page {
  background: var(--bg);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  min-height: 100vh;
  background: rgba(15, 14, 23, 0.97);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  will-change: transform;
  transform: translateZ(0);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: white;
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.sidebar-nav .nav-item:hover {
  background: var(--surface);
  color: var(--text);
}

.sidebar-nav .nav-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.sidebar-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Notifications ── */
.notif-btn-top,
.notif-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.notif-btn-top:hover,
.notif-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0d0b1e;
  /* FIXED: was #0f0e17 in dev, matches --bg now */
}

.notif-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  width: 320px;
  background: #1a1926;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.notif-dropdown.show {
  display: block;
  animation: notifFadeIn 0.2s ease;
}

@keyframes notifFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-header-dd {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-list-dd {
  max-height: 300px;
  overflow-y: auto;
}

.notif-item-dd {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.notif-item-dd:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Notif Cards in History */
.notif-card-h {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.25rem;
  transition: all 0.2s ease;
  position: relative;
}

.notif-card-h:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.3);
}

.notif-card-h.unread {
  border-left: 4px solid #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.notif-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notif-actions-h {
  display: flex;
  gap: 0.5rem;
}

.btn-notif-action {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-notif-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-notif-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.2);
}


.admin-main {
  flex: 1;
  margin-left: 220px;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 14, 23, 0.5);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 99;
}

.admin-content {
  flex: 1;
}

.admin-stat-card {
  padding: 1rem !important;
}

.table-header {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Table ── */
.table {
  color: var(--text);
  border-color: var(--border);
}

.table td,
.table th {
  border-color: var(--border) !important;
  vertical-align: middle;
  padding: 0.75rem;
}

.table-light {
  background: rgba(255, 255, 255, 0.04) !important;
}

.table-light th {
  color: var(--text-muted) !important;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-hover tbody tr:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.info-chip i {
  font-size: 1.2rem;
}

.info-chip small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.info-chip strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  border: none !important;
  font-weight: 600;
  border-radius: 10px !important;
  transition: var(--transition) !important;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
}

.btn-outline-primary {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  border-radius: 10px !important;
  font-weight: 500;
}

.btn-outline-primary:hover {
  background: var(--primary) !important;
  color: white !important;
}

.btn-success {
  background: var(--success) !important;
  border-color: var(--success) !important;
  border-radius: 10px !important;
  font-weight: 600;
}

.btn-outline-secondary {
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
  border-radius: 10px !important;
}

.btn-outline-secondary:hover {
  background: var(--surface) !important;
  color: var(--text) !important;
}

/* ── Forms ── */
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(99, 102, 241, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12) !important;
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}

.input-group>.form-control {
  border-radius: 0 !important;
}

.input-group>.form-control:first-child {
  border-radius: 12px 0 0 12px !important;
}

.input-group>.form-control:last-child {
  border-radius: 0 12px 12px 0 !important;
}

.input-group-text {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-muted) !important;
}

.form-label {
  color: var(--text);
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-text {
  color: var(--text-muted) !important;
  font-size: 0.78rem;
}

.form-select option {
  background: #1a1535;
}

/* ── Color utils ── */
.bg-primary-subtle {
  background: rgba(99, 102, 241, 0.12) !important;
}

.bg-success-subtle {
  background: rgba(16, 185, 129, 0.12) !important;
}

.bg-warning-subtle {
  background: rgba(245, 158, 11, 0.12) !important;
}

.bg-danger-subtle {
  background: rgba(239, 68, 68, 0.12) !important;
}

.bg-info-subtle {
  background: rgba(6, 182, 212, 0.12) !important;
}

.bg-secondary-subtle {
  background: rgba(148, 163, 184, 0.08) !important;
}

.bg-purple-subtle {
  background: rgba(139, 92, 246, 0.12) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-purple {
  color: var(--purple) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-info {
  color: var(--accent) !important;
}

/* ── Footer ── */
.main-footer,
.footer-custom {
  background: rgba(12, 11, 20, 0.9);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 3rem 0 1.5rem;
}

.footer-custom h5,
.main-footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-custom h6,
.main-footer h6 {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.footer-link:hover {
  color: #818cf8;
}

.footer-custom hr,
.main-footer hr {
  border-color: var(--border) !important;
  margin: 1.5rem 0 1rem;
}

.footer-custom p.text-center,
.main-footer p.text-center {
  color: rgba(255, 255, 255, 0.25) !important;
  font-size: 0.82rem;
}

/* ── Page banner / hero (internships listing fallback) ── */
.page-banner {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(139, 92, 246, 0.07));
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 60% -20%, rgba(99, 102, 241, 0.12), transparent);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.page-banner .hero-title span,
.browse-title span {
  background: linear-gradient(135deg, #6366f1, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.4);
}

/* ── Misc ── */
.filter-bar .form-control,
.filter-bar .form-select {
  border-radius: 12px !important;
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
}

.badge-xs {
  font-size: 0.7rem;
}

.fade-in-up {
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .admin-main {
    margin-left: 0;
  }

  .admin-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .browse-title {
    font-size: 2rem;
  }
}

/* ── Premium Welcome Modal ── */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.welcome-modal {
  width: 92%;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 36px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  transform: translateY(60px) scale(0.9);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.welcome-overlay.show .welcome-modal {
  transform: translateY(0) scale(1);
}

.welcome-modal::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.18), transparent 70%);
  z-index: -1;
  animation: rotateBgWelcome 12s linear infinite;
}

@keyframes rotateBgWelcome {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.wm-icon-box {
  width: 80px;
  height: 80px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: #818cf8;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.wm-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.wm-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.wm-security-box {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 22px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.wm-security-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.wm-security-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  line-height: 1.6;
}

.btn-wm-start {
  width: 100%;
  padding: 1.15rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
  transition: all 0.3s;
}

.btn-wm-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

/* ── Apply Page Balance ── */
.apply-page {
  transform: translateY(20px);
}