/* ============================================
   TRACER STUDY - SMOOTH MODERN LIGHT PORTAL
   ============================================ */

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

/* ---------- DESIGN TOKENS ---------- */
:root {
  --primary:        #2563eb;
  --primary-light:  #eff6ff;
  --primary-hover:  #1d4ed8;
  --accent:         #0ea5e9;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);

  --transition: all .2s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--primary-hover); }

img { max-width: 100%; display: block; }

/* ---------- NAVBAR ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all .3s ease;
}

.navbar .container { height: 72px; }

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: -.5px;
}

.navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(37,99,235,.2);
}

.nav-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-600) !important;
  padding: .6rem .85rem !important;
  border-radius: 10px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.nav-link:hover {
  color: var(--primary) !important;
  background: var(--primary-light);
}
.nav-link.active {
  color: var(--primary) !important;
  background: rgba(37,99,235, 0.08);
}
.nav-link i { font-size: .9rem; opacity: .8; }

.navbar-toggler {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: .5rem;
  background: var(--gray-50);
}
.navbar-toggler:focus { box-shadow: none; border-color: var(--primary); }

/* ---------- DROPDOWN ---------- */
.dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
  padding: .6rem;
  min-width: 220px;
  animation: dropdownFade .25s ease;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
  border-radius: 10px;
  padding: .6rem .85rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-item.text-danger:hover { background: #fef2f2; color: var(--danger); }
.dropdown-divider { margin: .4rem 0; border-color: var(--gray-100); }
.dropdown-header {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-500);
  padding: .25rem .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Avatar */
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-200);
}

.nav-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray-400);
  flex-shrink: 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: none;
  cursor: pointer;
  font-size: .875rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(37,99,235,.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600);
  background: var(--white);
}
.btn-outline-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-700);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--gray-200);
}
.btn-light:hover {
  background: var(--gray-50);
  color: var(--primary-hover);
}

.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-lg { padding: .7rem 1.5rem; font-size: 1rem; }

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}
.card-static:hover { transform: none; box-shadow: var(--shadow-xs); }

.card-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: .9rem;
}
.card-body { padding: 1.25rem; }
.card-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: .75rem 1.25rem;
}

/* ---------- BADGES ---------- */
.badge {
  border-radius: 6px;
  font-weight: 600;
  font-size: .75rem;
  padding: .25rem .6rem;
  letter-spacing: .02em;
}

.badge-primary   { background: var(--primary-light); color: var(--primary); }
.badge-success   { background: #ecfdf5; color: #059669; }
.badge-warning   { background: #fffbeb; color: #d97706; }
.badge-danger    { background: #fef2f2; color: #dc2626; }
.badge-gray      { background: var(--gray-100); color: var(--gray-600); }

/* ---------- FORMS ---------- */
.form-control, .form-select {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  font-size: .9rem;
  color: var(--gray-800);
  font-family: var(--font);
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  outline: none;
}
.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .4rem;
}
.input-group-text {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-500);
  font-size: .9rem;
}

/* ---------- ALERTS ---------- */
.alert {
  border-radius: var(--radius);
  border: none;
  padding: .85rem 1.1rem;
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.alert-success   { background: #ecfdf5; color: #065f46; }
.alert-danger,
.alert-error     { background: #fef2f2; color: #7f1d1d; }
.alert-warning   { background: #fffbeb; color: #78350f; }
.alert-info      { background: var(--primary-light); color: #1e3a8a; }

/* ---------- HERO SECTION ---------- */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 7rem;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--gray-50);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .2;
  pointer-events: none;
}
.hero-blob-1 { width:500px; height:500px; background:#60a5fa; top:-150px; right:-100px; }
.hero-blob-2 { width:300px; height:300px; background:#a78bfa; bottom:-50px; left:5%; }

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

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gray-200);
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title .section-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}
.section-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.section-link:hover { gap: .5rem; }

/* ---------- JOB CARDS ---------- */
.job-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--white);
  transition: var(--transition);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.job-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08), var(--shadow-md);
  transform: translateY(-1px);
}
.job-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.job-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.job-logo i { color: var(--gray-400); font-size: 1.3rem; }
.job-body { flex: 1; min-width: 0; }
.job-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-title a { color: inherit; }
.job-title a:hover { color: var(--primary); }
.job-company { font-size: .85rem; color: var(--gray-600); margin-bottom: .5rem; font-weight: 500; }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- POST CARDS ---------- */
.post-card { border-radius: var(--radius); overflow: hidden; }
.post-card .post-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.post-card .post-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 2.5rem;
}
.post-card .post-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.post-card .post-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: .5rem;
}
.post-card .post-title a { color: inherit; }
.post-card .post-title a:hover { color: var(--primary); }
.post-card .post-excerpt {
  font-size: .82rem;
  color: var(--gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: var(--gray-400);
  font-weight: 500;
}
.post-meta i { margin-right: .2rem; }

/* ---------- STATS CARDS ---------- */
.stats-overlap {
  margin-top: -4.5rem;
  position: relative;
  z-index: 20;
}
.stat-card-v2 {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.1);
  border: 1px solid rgba(255,255,255, 1);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  border-color: var(--primary-light);
}
.stat-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.si-blue   { background: linear-gradient(135deg,#dbeafe,#bfdbfe); color:#1d4ed8; }
.si-green  { background: linear-gradient(135deg,#d1fae5,#a7f3d0); color:#065f46; }
.si-purple { background: linear-gradient(135deg,#f3e8ff,#e9d5ff); color:#6b21a8; }
.si-amber  { background: linear-gradient(135deg,#fef3c7,#fde68a); color:#92400e; }

.stat-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: #111827;
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-label {
  font-size: .85rem;
  color: var(--gray-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ---------- PAGINATION ---------- */
.pagination .page-link {
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  border-radius: var(--radius-sm) !important;
  padding: .45rem .75rem;
  margin: 0 .15rem;
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
}
.pagination .page-link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---------- TAGS / CATEGORIES ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
}
.tag:hover, .tag.active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* ---------- ARTICLE ---------- */
.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--gray-700);
}
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--gray-900); }
.article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: var(--gray-800); }
.article-body p { margin-bottom: 1.2rem; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: .75rem 1.25rem;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray-600);
}
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow-md); }
.article-body code {
  background: var(--gray-100);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9em;
  color: var(--danger);
}

/* ---------- SIDEBAR ---------- */
.sidebar-card { margin-bottom: 1.25rem; }
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li {
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem .25rem;
  color: var(--gray-700);
  font-size: .875rem;
  font-weight: 500;
}
.sidebar-list a:hover { color: var(--primary); padding-left: .4rem; }
.sidebar-count {
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: .72rem;
  padding: .15rem .5rem;
  border-radius: 99px;
  font-weight: 600;
}

/* ---------- LOGIN PAGE ---------- */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}
.login-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--white);
}
.login-logo {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.login-body { padding: 2rem; }
.login-info {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .82rem;
  color: #1e3a8a;
  margin-top: 1.25rem;
}
.login-info strong { display: block; margin-bottom: .2rem; }

/* ---------- CAROUSEL ---------- */
.hero-carousel { margin-bottom: 0; }
.hero-carousel .carousel-item { height: 480px; }
.hero-carousel img { height: 100%; object-fit: cover; }
.carousel-gradient {
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
  position: absolute;
  inset: 0;
}

/* ---------- MESSAGES ---------- */
.messages-container { padding: .75rem 0 0; }

/* ---------- FOOTER ---------- */
footer {
  background: #0f172a;
  color: var(--gray-400);
  padding: 5rem 0 2.5rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}
footer .footer-brand {
  margin-bottom: 1.25rem;
}
footer .footer-desc {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--gray-400);
  margin-bottom: 2rem;
}
footer .footer-title {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 1.75rem;
  position: relative;
  display: inline-block;
}
footer .footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 24px; height: 2px;
  background: var(--primary);
}
footer .footer-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--gray-400);
  font-size: .9rem;
  padding: .5rem 0;
  transition: all .2s ease;
  font-weight: 500;
}
footer .footer-link:hover {
  color: var(--white);
  transform: translateX(6px);
}
footer .footer-link::before {
  content: '→';
  font-size: .8rem;
  opacity: 0;
  transition: all .2s ease;
  color: var(--primary);
}
footer .footer-link:hover::before {
  opacity: 1;
}

footer .footer-divider {
  border-color: rgba(255,255,255, .06);
  margin: 3rem 0 1.5rem;
}
footer .footer-bottom {
  font-size: .85rem;
  font-weight: 500;
}
footer .social-link {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255, .04);
  border: 1px solid rgba(255,255,255, .08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 1rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
footer .social-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-5px) rotate(8deg);
  box-shadow: 0 10px 20px rgba(37,99,235, .2);
}

/* ---------- UTILITIES ---------- */
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--gray-500) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--gray-50) !important; }

.divider { border: none; border-top: 1px solid var(--gray-200); margin: 1.5rem 0; }

.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.fade-in { animation: fadeIn .4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.modal-content { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--gray-200); padding: 1.25rem 1.5rem; }
.modal-footer { border-top: 1px solid var(--gray-200); padding: 1rem 1.5rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .navbar .container { height: auto; padding: .75rem 1rem; }
  .navbar-collapse {
    background: #fff;
    margin-top: .5rem;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border: 1px solid var(--gray-100);
  }
  .nav-link { padding: .75rem 1rem !important; }
}

@media (max-width: 768px) {
  .hero-section { padding: 4rem 0 5rem; }
  .hero-title { font-size: 2.25rem; }
  .stats-overlap { margin-top: -3rem; }
  .stat-card-v2 { padding: 1.25rem; }
  .stat-num { font-size: 1.75rem; }
  .stat-icon-wrap { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: .75rem; }
  
  .section-title { font-size: 1.75rem; }
  .section-card { padding: 2rem 1.5rem; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.85rem; }
  .btn-lg { width: 100%; justify-content: center; }
}
/* ---------- STUDENT DASHBOARD & SIDEBAR ---------- */
.dash-layout { 
  display: grid; 
  grid-template-columns: 280px 1fr; 
  gap: 2rem; 
  align-items: start; 
}
@media (max-width: 1199px) {
  .dash-layout { grid-template-columns: 240px 1fr; gap: 1.5rem; }
}
@media (max-width: 991px) { 
  .dash-layout { grid-template-columns: 1fr; gap: 1.5rem; } 
}

/* ---- WIZARD STEPS BAR ---- */
.wizard-steps {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: .85rem 1.25rem;
  box-shadow: var(--shadow-sm);
  gap: 0;
}
.wz-step {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.wz-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
  /* pending default */
  background: var(--gray-100);
  color: var(--gray-400);
  border: 2px solid var(--gray-200);
}
.wz-step.active .wz-circle {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.wz-step.done .wz-circle {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.wz-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
  transition: color .15s;
}
.wz-step.active .wz-label { color: var(--primary); font-weight: 700; }
.wz-step.done .wz-label { color: var(--success); }
.wz-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  min-width: 16px;
  margin: 0 .5rem;
  border-radius: 99px;
  transition: background .3s;
}
.wz-line.done { background: var(--success); }
@media (max-width: 991px) {
  .wizard-steps { 
    overflow-x: auto; 
    padding: 1rem; 
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .wz-step { flex-shrink: 0; }
}
@media (max-width: 768px) {
  .wz-label { font-size: .7rem; }
  .wz-line { min-width: 12px; margin: 0 .3rem; }
}
@media (max-width: 576px) {
  .wizard-steps { padding: .65rem .85rem; }
  .wz-label { display: none; }
  .wz-line { min-width: 10px; }
}


/* ---- PROFILE CARD ---- */
.profile-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.profile-card .profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
}

.profile-card .profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 2.5px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: block; margin: 0 auto .75rem;
}

.profile-card .profile-name {
  color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.35;
  margin-bottom: .15rem;
}

.profile-card .profile-nim {
  color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 500;
}

/* Divider between header & body */
.profile-card .profile-body {
  padding: 1rem 1.25rem;
}

/* Compact unit badge (not a pill anymore — less overflow risk) */
.profile-card .profile-unit-badge {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .6rem .85rem;
  margin-bottom: .85rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  word-break: break-word;
}
.profile-card .profile-unit-badge i {
  flex-shrink: 0;
  margin-top: .1rem;
  opacity: .75;
}

/* Compact info grid */
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.profile-info-cell {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: .5rem .65rem;
  border: 1px solid var(--gray-100);
}
.profile-info-cell .pi-label {
  font-size: .65rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .1rem;
}
.profile-info-cell .pi-value {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Full-width cell variant */
.profile-info-cell.full { grid-column: 1 / -1; }

/* ---- SIDEBAR MENU ---- */
.sidebar-menu-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-menu-label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .75rem 1rem .4rem;
}
.student-menu-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: .875rem;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.student-menu-link:hover {
  background: var(--gray-50);
  color: var(--primary);
  border-left-color: var(--primary);
}
.student-menu-link.active {
  background: #eff6ff;
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
}
.student-menu-link.danger { color: var(--danger); }
.student-menu-link.danger:hover { background: #fef2f2; border-left-color: var(--danger); }
.student-menu-link + .student-menu-link {
  border-top: 1px solid var(--gray-100);
}
.student-menu-link .menu-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
  opacity: .7;
}
.student-menu-link.active .menu-icon,
.student-menu-link:hover .menu-icon { opacity: 1; }

/* Step Cards */
.step-item {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--white);
  transition: var(--transition);
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}
.step-item.active { border-color: var(--primary); background: #eff6ff; }
.step-item.completed { border-color: var(--success); }

.step-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.step-number.pending { background: var(--gray-100); color: var(--gray-400); }
.step-number.active { background: var(--primary); color: #fff; }
.step-number.completed { background: var(--success); color: #fff; }

.step-content { flex-grow: 1; }
.step-title { font-weight: 700; font-size: .95rem; color: var(--gray-900); margin-bottom: .15rem; }
.step-desc { font-size: .82rem; color: var(--gray-500); }

/* Status Badges */
.status-badge {
  padding: .5rem 1rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.status-draft { background: var(--gray-100); color: var(--gray-600); }
.status-pending { background: #fffbeb; color: #92400e; }
.status-validated { background: #ecfdf5; color: #15803d; }
.status-rejected { background: #fef2f2; color: #b91c1c; }

/* Content Headers */
.content-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.content-header-subtitle {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.content-header-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
  letter-spacing: -.02em;
}

/* Status Card Premium */
.status-card-premium {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  margin-bottom: 2rem;
}
.status-card-icon {
  width: 100px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
}
@media (max-width: 576px) {
  .status-card-premium { flex-direction: column; }
  .status-card-icon { width: 100%; padding: 1.5rem; }
}
.status-card-body {
  padding: 1.5rem 2rem;
  flex: 1;
}

/* Tracer Blocker Styles */
.tracer-blocker-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.tracer-blocker-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 450px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  position: relative;
  animation: modalIn .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.tracer-blocker-header {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  padding: 2rem 1.5rem;
  text-align: center;
  color: white;
}
.tracer-blocker-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.25rem;
  box-shadow: 0 8px 16px rgba(0,0,0,.1);
}
.tracer-blocker-body { padding: 2rem; }

.tracer-blocker-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  text-decoration: none;
  transition: all .2s;
  z-index: 10;
}
.tracer-blocker-close:hover {
  background: rgba(255,255,255,.3);
  transform: rotate(90deg);
  color: white;
}
