/* ============================================================
   Alumni UNIB - Custom CSS
   Theme: Biru Dongker (#1B2A4A) + Kuning Emas (#F4C430)
   ============================================================ */

:root {
  --primary:        #1B2A4A;
  --primary-dark:   #0D1B2A;
  --primary-light:  #243660;
  --accent:         #F4C430;
  --accent-hover:   #DAA520;
  --accent-light:   #FFF3CD;
  --bg:             #F5F6FA;
  --bg-card:        #FFFFFF;
  --text:           #333333;
  --text-muted:     #6C757D;
  --border:         #E2E8F0;
  --success:        #28A745;
  --danger:         #DC3545;
  --warning:        #FFC107;
  --info:           #17A2B8;
  --shadow-sm:      0 2px 8px rgba(27,42,74,0.08);
  --shadow-md:      0 4px 16px rgba(27,42,74,0.12);
  --shadow-lg:      0 8px 32px rgba(27,42,74,0.15);
  --radius:         12px;
  --radius-sm:      8px;
  --transition:     all 0.25s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   Typography
   ============================================================ */
h1,h2,h3,h4,h5,h6 { color: var(--primary); font-weight: 700; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* ============================================================
   Navbar
   ============================================================ */
.navbar-alumni {
  background: var(--primary);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.navbar-alumni .navbar-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-alumni .navbar-brand img { height: 40px; width: auto; }
.navbar-alumni .navbar-brand span { line-height: 1.2; }
.navbar-alumni .navbar-brand small { font-size: 0.7rem; font-weight: 400; opacity: 0.8; display: block; }

.navbar-alumni .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-alumni .nav-link:hover,
.navbar-alumni .nav-link.active {
  color: #fff !important;
  background: rgba(244,196,48,0.2);
}

.navbar-alumni .nav-link.active {
  color: var(--accent) !important;
  font-weight: 600;
}

.navbar-alumni .btn-nav-login {
  background: var(--accent);
  color: var(--primary) !important;
  font-weight: 700;
  padding: 8px 20px !important;
  border-radius: 50px;
}

.navbar-alumni .btn-nav-login:hover {
  background: var(--accent-hover);
  color: var(--primary-dark) !important;
}

.navbar-alumni .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  min-width: 200px;
}

.navbar-alumni .dropdown-item:hover { background: var(--bg); color: var(--primary); }

.navbar-toggler { border: none; }
.navbar-toggler-icon { filter: invert(1); }

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244,196,48,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244,196,48,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 35px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-logo {
  width: 100%;
  max-width: 300px;
  opacity: 0.9;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
  background: var(--accent);
  padding: 20px 0;
}

.stat-item {
  text-align: center;
  padding: 8px 20px;
  border-right: 1px solid rgba(27,42,74,0.15);
}

.stat-item:last-child { border-right: none; }
.stat-item-last { border-right: none !important; }
.stat-number { font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.8rem; font-weight: 600; color: var(--primary); opacity: 0.8; }

.search-hero-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.scroll-margin-top { scroll-margin-top: 96px; }

.card-alumni .alumni-company-mini {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   Section Styles
   ============================================================ */
.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px 0 24px;
}

/* Heading seragam untuk blok beranda & halaman publik */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-head .section-head-text { flex: 1; min-width: 200px; }

.btn-section-outline {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  border: 2px solid var(--primary);
  background: transparent;
  border-radius: 50px;
  padding: 8px 20px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-section-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Beranda: tiga pilar mengarah ke blok di bawah */
.home-pillars {
  padding: 48px 0 8px;
  background: var(--bg);
}

.home-pillar-card {
  display: block;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.home-pillar-card:hover {
  border-color: rgba(244, 196, 48, 0.55);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.home-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.home-pillar-icon.direktori {
  background: rgba(27, 42, 74, 0.08);
  color: var(--primary);
}

.home-pillar-icon.terbaru {
  background: rgba(244, 196, 48, 0.2);
  color: var(--primary-dark);
}

.home-pillar-icon.ai {
  background: rgba(27, 42, 74, 0.12);
  color: var(--primary);
}

.home-pillar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.home-pillar-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.home-section-alt {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(244, 196, 48, 0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(244, 196, 48, 0.35);
}

.hero-col-main { position: relative; z-index: 2; }

.ai-badge-home {
  display: inline-flex;
  align-items: center;
  background: rgba(244, 196, 48, 0.15);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
}

.ai-search-section .section-head .section-title {
  color: #fff !important;
}

.ai-search-section .section-eyebrow {
  color: rgba(255, 255, 255, 0.88) !important;
}

.ai-search-section .section-divider {
  background: var(--accent);
}

.cta-register-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 48px 0;
}

.cta-register-section h2 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-register-section p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-register-section .btn-accent {
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 1rem;
}

/* ============================================================
   Cards
   ============================================================ */
.card-alumni {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
}

.card-alumni:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-alumni .card-img-top {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 20px auto 12px;
  display: block;
}

.card-alumni .card-body { padding: 0 20px 20px; text-align: center; }
.card-alumni .alumni-name { font-weight: 700; color: var(--primary); font-size: 1rem; }
.card-alumni .alumni-prodi { font-size: 0.82rem; color: var(--text-muted); }
.card-alumni .alumni-jabatan { font-size: 0.85rem; color: var(--accent-hover); font-weight: 600; }

.badge-skill {
  background: var(--accent-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(244,196,48,0.4);
  margin: 2px;
  display: inline-block;
}

/* ============================================================
   News Card
   ============================================================ */
.card-berita {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-berita:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-berita .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.card-berita .card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 3rem;
}

.card-berita .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-berita .kategori-badge {
  background: var(--accent);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 10px;
}

.card-berita h5 { font-size: 0.95rem; font-weight: 700; line-height: 1.4; flex: 1; }
.card-berita .text-muted { font-size: 0.8rem; }

/* ============================================================
   Loker Card
   ============================================================ */
.card-loker {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
  padding: 20px;
}

.card-loker:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.loker-company { font-weight: 700; color: var(--primary); }
.loker-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.loker-meta { font-size: 0.82rem; color: var(--text-muted); }

.badge-loker {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.badge-loker.full-time { background: #E8F5E9; color: #2E7D32; }
.badge-loker.part-time { background: #E3F2FD; color: #1565C0; }
.badge-loker.freelance { background: #FFF3E0; color: #E65100; }
.badge-loker.magang    { background: #F3E5F5; color: #6A1B9A; }
.badge-loker.remote    { background: #E0F2F1; color: #00695C; }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,42,74,0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,196,48,0.4);
}

.btn-outline-primary-custom {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-primary-custom:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* ============================================================
   Search Box
   ============================================================ */
.search-hero-box {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 30px;
}

.search-input-group {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.search-input-group input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 1rem;
  outline: none;
  color: var(--text);
}

.search-input-group button {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 16px 28px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 50px 50px 0;
  transition: var(--transition);
  white-space: nowrap;
}

.search-input-group button:hover { background: var(--accent-hover); }

/* ============================================================
   Alumni Panel / Sidebar
   ============================================================ */
.panel-wrapper {
  display: flex;
  min-height: calc(100vh - 70px);
}

.panel-sidebar {
  width: 260px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.panel-sidebar .sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.sidebar-user-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.sidebar-user-role { font-size: 0.75rem; opacity: 0.7; }

.panel-sidebar .sidebar-nav { padding: 16px 12px; flex: 1; }

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  cursor: pointer;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
  background: rgba(244,196,48,0.15);
  color: var(--accent);
}

.sidebar-nav-item i { width: 18px; text-align: center; font-size: 0.95rem; }
.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  padding: 12px 14px 4px;
  text-transform: uppercase;
}

.panel-content { flex: 1; padding: 28px; overflow-x: hidden; }

.panel-header {
  background: var(--primary);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.panel-header-title { color: #fff; font-weight: 700; font-size: 1rem; }

/* ============================================================
   Page Header (inner pages)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 50px 0 40px;
}

.page-header h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.page-header .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-header .breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.page-header .breadcrumb-item.active { color: var(--accent); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ============================================================
   Tables
   ============================================================ */
.table-custom { width: 100%; border-collapse: collapse; }
.table-custom thead th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.table-custom tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: middle;
}

.table-custom tbody tr:hover { background: rgba(27,42,74,0.03); }

/* ============================================================
   Forms
   ============================================================ */
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--primary); margin-bottom: 6px; }

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,42,74,0.1);
  outline: none;
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 20px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo img { height: 64px; }
.auth-logo h2 { color: var(--primary); font-size: 1.4rem; margin: 10px 0 4px; }
.auth-logo p { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================================
   Alert
   ============================================================ */
.alert-custom {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 4px solid;
  margin-bottom: 16px;
}

.alert-danger  { background: #FEF2F2; color: #991B1B; border-color: var(--danger); }
.alert-success { background: #F0FDF4; color: #166534; border-color: var(--success); }
.alert-warning { background: #FFFBEB; color: #92400E; border-color: var(--warning); }
.alert-info    { background: #EFF6FF; color: #1E40AF; border-color: var(--info); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 20px;
  margin-top: auto;
}

.footer h5 { color: var(--accent); font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer a:hover { color: var(--accent); }
.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

.footer-logo img { height: 50px; filter: brightness(0) invert(1); opacity: 0.8; }

/* ============================================================
   Profile / Alumni Detail
   ============================================================ */
.profile-cover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  height: 200px;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
}

.profile-avatar-wrap {
  position: absolute;
  bottom: -50px;
  left: 30px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
}

.profile-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.profile-info {
  padding: 64px 30px 24px;
}

.profile-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.profile-prodi { color: var(--text-muted); font-size: 0.9rem; }
.profile-jabatan { color: var(--accent-hover); font-weight: 600; }

.info-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.info-value { font-size: 0.92rem; color: var(--text); }

/* ============================================================
   Search / AI Section
   ============================================================ */
.ai-search-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 0;
}

/* Halaman /cari: split kiri-kanan */
.cari-workspace {
  min-height: calc(100vh - 72px);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1a2740 100%);
}

.cari-workspace .row.g-0 {
  min-height: calc(100vh - 72px);
}

.cari-panel-form {
  padding: 32px 28px 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 992px) {
  .cari-panel-form-inner {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 4px;
  }
  .cari-panel-form-inner::-webkit-scrollbar { width: 6px; }
  .cari-panel-form-inner::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
  }
}

.cari-panel-results {
  background: var(--bg);
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.cari-results-inner {
  padding: 28px 24px 36px;
  max-width: 100%;
}

/* Isi panel kanan memenugi tinggi kolom agar empty state bisa vertikal tengah */
.cari-panel-results > .cari-results-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#resultsContent {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

@media (min-width: 1200px) {
  .cari-results-inner { padding: 32px 36px 40px; }
}

.cari-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cari-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 24px 16px 32px;
}

.cari-empty-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(27, 42, 74, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  position: relative;
  overflow: hidden;
}

.cari-empty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  opacity: 0.95;
}

.cari-empty-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(244, 196, 48, 0.18), rgba(27, 42, 74, 0.06));
  border: 1px solid rgba(244, 196, 48, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.08);
}

.cari-empty-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.cari-empty-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.cari-empty-text strong {
  color: var(--primary);
  font-weight: 700;
}

/* Saran cepat: 2 kolom × 2 baris (4 chip) */
.ai-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.5rem;
  width: 100%;
}

.ai-suggestion-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  padding: 7px 8px;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: var(--transition);
  min-width: 0;
  width: 100%;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-align: center;
  align-items: center;
  justify-content: center;
  word-break: break-word;
}

.ai-suggestion-chip:hover {
  background: rgba(244, 196, 48, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

/* Beranda: saran sejajar ke samping (bukan penuh lebar per baris) */
.ai-suggestion-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 2px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.ai-suggestion-row::-webkit-scrollbar {
  height: 6px;
}

.ai-suggestion-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
}

.ai-suggestion-chip.ai-suggestion-chip--home {
  width: auto;
  min-width: max-content;
  max-width: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 0;
  padding: 8px 14px;
  font-size: 0.78rem;
  border-radius: 50px;
  -webkit-line-clamp: unset;
  overflow: visible;
  text-align: center;
  word-break: normal;
}

/* Saran di area hasil (latar terang) */
.ai-suggestion-chip--light {
  background: #fff;
  border: 1px solid rgba(27, 42, 74, 0.18);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(27, 42, 74, 0.06);
}

.ai-suggestion-chip--light:hover {
  background: rgba(244, 196, 48, 0.15);
  border-color: var(--accent);
  color: var(--primary);
}

.cari-no-result-suggest {
  max-width: 420px;
  margin: 0 auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.cari-no-result-suggest-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.cari-no-result-grid {
  gap: 0.45rem 0.5rem;
}

.cari-loading-panel {
  position: absolute;
  inset: 0;
  background: rgba(245,246,250,0.94);
  backdrop-filter: blur(6px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* Spinner berputar, logo UNIB di tengah */
.cari-logo-spinner {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
}

.cari-spinner-ring {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(27,42,74,0.1);
  border-top-color: var(--accent);
  border-right-color: rgba(27,42,74,0.35);
  border-radius: 50%;
  animation: spin 0.95s linear infinite;
}

.cari-spinner-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  object-fit: contain;
  pointer-events: none;
}

.cari-load-progress-wrap {
  width: min(280px, 90%);
  margin-top: 8px;
}

.cari-load-progress-wrap .progress {
  height: 8px;
  border-radius: 50px;
  background: rgba(27,42,74,0.08);
  overflow: hidden;
}

.cari-load-progress-wrap .progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease-out;
}

.cari-load-percent {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

/* Panel graph (kanan, ganti view hasil) */
.cari-graph-view {
  padding-top: 4px;
}

.cari-graph-view .btn-back-search {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.cari-graph-view .btn-back-search:hover {
  border-color: var(--accent);
  color: var(--primary);
  background: var(--accent-light);
}

.cari-card-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: var(--transition);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.cari-card-result:hover {
  border-color: rgba(244,196,48,0.45);
  box-shadow: var(--shadow-md);
}

.ai-analysis-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 991px) {
  .cari-workspace { min-height: auto; }
  .cari-workspace .row.g-0 { min-height: auto; }
  .cari-panel-results {
    min-height: auto;
  }
  .cari-empty-state {
    min-height: 42vh;
  }
  .cari-panel-form {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 24px 18px 28px;
  }
  .cari-results-inner { padding: 22px 16px 28px; }
}

.ai-search-box {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 40px;
}

.ai-search-title { color: #fff; font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.ai-search-subtitle { color: rgba(255,255,255,0.75); margin-bottom: 28px; }

.ai-input-wrapper {
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.ai-input-wrapper textarea {
  width: 100%;
  border: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  border-radius: var(--radius-sm);
  min-height: 100px;
}

.ai-input-wrapper .btn-cari-ai {
  width: 100%;
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.ai-input-wrapper .btn-cari-ai:hover { background: var(--accent-hover); }

.ai-input-wrapper .btn-cari-ai:disabled,
.ai-input-wrapper .btn-cari-ai[disabled] {
  opacity: 0.88;
  cursor: not-allowed;
}

/* Filter tambahan — teks & angka putih di panel gelap */
.cari-filter-panel .cari-filter-label {
  color: rgba(255,255,255,0.95);
  font-size: 0.82rem;
  font-weight: 700;
}
.cari-filter-panel .cari-filter-hint {
  color: rgba(255,255,255,0.55) !important;
}
.cari-filter-panel .cari-filter-field,
.cari-filter-panel .form-select,
.cari-filter-panel .form-control {
  color: #fff !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  min-height: 31px;
}
.cari-filter-panel .form-select:focus,
.cari-filter-panel .form-control:focus {
  border-color: rgba(244,196,48,0.65) !important;
  box-shadow: 0 0 0 0.2rem rgba(244,196,48,0.12);
  color: #fff !important;
  background: rgba(255,255,255,0.14) !important;
}
.cari-filter-panel .form-select option {
  color: #222;
  background: #fff;
}
.cari-filter-panel input::placeholder {
  color: rgba(255,255,255,0.5) !important;
}
.cari-filter-panel input[type="number"] {
  -moz-appearance: textfield;
}
.cari-angkatan-clear {
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.28) !important;
  color: #fff !important;
}
.cari-angkatan-clear:hover {
  background: rgba(255,255,255,0.22) !important;
  color: #fff !important;
}
.cari-btn-apply {
  background: rgba(244,196,48,0.28) !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  border-radius: 8px;
  min-height: 31px;
}
.cari-btn-apply:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}
.cari-btn-reset {
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff !important;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  min-height: 31px;
}
.cari-btn-reset:hover {
  background: rgba(255,255,255,0.14);
  color: #fff !important;
}

/* Score badge */
.score-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 50px;
}

.score-badge.high   { background: linear-gradient(135deg, #166534, #28A745); }
.score-badge.medium { background: linear-gradient(135deg, #92400E, #F59E0B); }
.score-badge.low    { background: linear-gradient(135deg, #1E40AF, #3B82F6); }

/* ============================================================
   Graph
   ============================================================ */
#collaboration-graph {
  width: 100%;
  height: 520px;
  background: var(--primary-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.graph-tooltip {
  position: absolute;
  background: rgba(27,42,74,0.95);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  pointer-events: none;
  z-index: 100;
  max-width: 220px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(244,196,48,0.3);
}

.graph-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
  .panel-sidebar { display: none; }
  .panel-wrapper { flex-direction: column; }
  .panel-content { padding: 20px; }
}

@media (max-width: 768px) {
  .hero-section { padding: 60px 0 50px; }
  .hero-title { font-size: 1.8rem; }
  .hero-logo { max-width: 200px; margin: 30px auto 0; display: block; }
  .auth-card { padding: 28px 24px; }
  .search-input-group { flex-direction: column; border-radius: var(--radius); }
  .search-input-group input { border-radius: var(--radius) var(--radius) 0 0; }
  .search-input-group button { border-radius: 0 0 var(--radius) var(--radius); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(27,42,74,0.15); padding: 12px; }
}

@media (max-width: 576px) {
  .hero-section { padding: 48px 0 40px; }
  .section-title { font-size: 1.5rem; }
  .profile-info { padding: 64px 20px 20px; }
  .ai-search-box { padding: 24px 20px; }
  .home-pillars { padding: 32px 0 0; }
}

/* ============================================================
   DataTables Override
   ============================================================ */
.dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--primary); }

.dataTable thead th { background: var(--primary) !important; color: #fff !important; }
.dataTable thead th.sorting::after,
.dataTable thead th.sorting_asc::after,
.dataTable thead th.sorting_desc::after { color: var(--accent) !important; }

/* ============================================================
   Utilities
   ============================================================ */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent-hover) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.border-accent { border-color: var(--accent) !important; }

.rounded-custom { border-radius: var(--radius); }
.shadow-custom { box-shadow: var(--shadow-md); }

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Kolaborasi type icons */
.kolaborasi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: var(--transition);
}

.kolaborasi-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.kolaborasi-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-research    { background: #EDE9FE; color: #7C3AED; }
.icon-business    { background: #DCFCE7; color: #16A34A; }
.icon-mentoring   { background: #FEF3C7; color: #D97706; }
.icon-consulting  { background: #DBEAFE; color: #2563EB; }
.icon-project     { background: #FCE7F3; color: #DB2777; }
.icon-networking  { background: #E0F2FE; color: #0284C7; }
.icon-other       { background: #F3F4F6; color: #6B7280; }
