/* ================================================================
   BKK SMKN 2 Purwokerto - Main Stylesheet
   Modern, Mobile-First Design
   ================================================================ */

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

/* ---- CSS Variables ------------------------------------------- */
:root {
  /* Brand Colors */
  --primary:       #1E40AF;
  --primary-dark:  #1E3A8A;
  --primary-light: #3B82F6;
  --primary-50:    #EFF6FF;
  --primary-100:   #DBEAFE;
  --secondary:     #059669;
  --secondary-50:  #ECFDF5;
  --accent:        #F59E0B;
  --accent-50:     #FFFBEB;
  --danger:        #DC2626;
  --danger-50:     #FEF2F2;
  --warning:       #D97706;
  --warning-50:    #FFFBEB;
  --info:          #0284C7;
  --info-50:       #F0F9FF;
  --purple:        #7C3AED;
  --purple-50:     #F5F3FF;

  /* Neutrals */
  --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;

  /* Layout - Compact */
  --sidebar-w:    220px;
  --topbar-h:     52px;
  --border-r:     8px;
  --border-r-sm:  6px;
  --border-r-lg:  12px;
  --border-r-xl:  16px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);
  --shadow-xl:  0 20px 25px rgba(0,0,0,.08), 0 10px 10px rgba(0,0,0,.03);

  /* Transitions */
  --transition: all .15s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .25s cubic-bezier(.4,0,.2,1);

  /* Typography */
  --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar ----------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ================================================================
   AUTH PAGES
   ================================================================ */
.auth-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 40%, #0F172A 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59,130,246,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(5,150,105,.1) 0%, transparent 50%);
}

.auth-bg .shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  background: white;
}
.auth-bg .shape-1 { width: 300px; height: 300px; top: -80px; right: -60px; }
.auth-bg .shape-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; }
.auth-bg .shape-3 { width: 120px; height: 120px; top: 40%; left: 5%; }

.auth-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-radius: var(--border-r-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  animation: slideUp .4s ease;
}

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

.auth-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: .75rem;
}

.auth-logo h1 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

.auth-logo p {
  font-size: .8125rem;
  color: var(--gray-500);
  margin-top: .25rem;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, #0F172A 0%, #1E2A3B 100%);
  position: fixed;
  left: 0; top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: var(--transition-slow);
  box-shadow: 4px 0 20px rgba(0,0,0,.15);
}

.sidebar-brand-wrapper {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.sidebar-brand {
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
}

.sidebar-brand img {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  padding: 2px;
}

.sidebar-brand-text .name {
  font-size: .8125rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.sidebar-brand-text .sub {
  font-size: .625rem;
  color: rgba(255,255,255,.45);
  font-weight: 400;
}

.sidebar-nav {
  flex: 1;
  padding: .5rem 0;
  overflow-y: auto;
}

.nav-section-title {
  padding: .35rem 1rem .15rem;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-top: .35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .45rem 1rem;
  text-decoration: none;
  color: rgba(255,255,255,.65);
  font-size: .8125rem;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  margin: 1px 0;
}

.sidebar-link:hover {
  color: white;
  background: rgba(255,255,255,.07);
}

.sidebar-link.active {
  color: white;
  background: linear-gradient(90deg, rgba(59,130,246,.25) 0%, rgba(59,130,246,.08) 100%);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary-light);
  border-radius: 0 3px 3px 0;
}

.sidebar-link .icon {
  width: 17px; height: 17px;
  flex-shrink: 0;
  opacity: .8;
}

.sidebar-link.active .icon { opacity: 1; }

.sidebar-link .badge {
  margin-left: auto;
  background: var(--primary-light);
  color: white;
  font-size: .625rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 999px;
  line-height: 1.3;
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: .75rem;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.topbar-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 0;
  cursor: pointer;
  color: #1e293b;
  border-radius: 8px;
  transition: all .15s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}

.topbar-toggle svg {
  width: 17px;
  height: 17px;
}

.topbar-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.topbar-toggle:active {
  transform: translateY(0) scale(0.95);
}

@media (min-width: 992px) {
  body.sidebar-collapsed .sidebar {
    transform: translateX(-100%) !important;
  }
  body.sidebar-collapsed .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

.topbar-search {
  flex: 1;
  max-width: 260px;
  position: relative;
}

.topbar-search input {
  width: 100%;
  padding: .35rem .75rem .35rem 2rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  font-size: .8125rem;
  height: 34px;
  background: var(--gray-50);
  color: var(--gray-800);
  transition: var(--transition);
  outline: none;
}

.topbar-search input:focus {
  border-color: var(--primary-light);
  background: white;
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}

.topbar-search .search-icon {
  position: absolute;
  left: .75rem;
  top: 50%; transform: translateY(-50%);
  color: var(--gray-400);
  width: 14px;
  height: 14px;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .375rem;
}

.topbar-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.topbar-btn svg { width: 16px; height: 16px; }

.topbar-btn:hover { background: var(--gray-200); color: var(--gray-900); }

.topbar-btn .dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 7px; height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid white;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .2rem .5rem .2rem .2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--gray-800);
}

.topbar-user:hover { background: var(--gray-100); }

.topbar-user .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.topbar-user .user-info .name {
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.15;
}

.topbar-user .user-info .role {
  font-size: .625rem;
  color: var(--gray-500);
}

/* Main Content */
.main-content {
  flex: 1 1 auto;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  max-width: calc(100% - var(--sidebar-w));
  width: calc(100% - var(--sidebar-w));
  transition: margin-left .3s cubic-bezier(.4,0,.2,1), max-width .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
}

.page-content {
  flex: 1;
  padding: 1rem 1.25rem;
}

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.page-title h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.page-title p {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: .15rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: var(--gray-500);
  margin-top: .15rem;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: .35rem;
  color: var(--gray-300);
}

.breadcrumb a { color: var(--primary); text-decoration: none; }

/* ================================================================
   STAT CARDS
   ================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: white;
  border-radius: var(--border-r);
  padding: .75rem 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
}

.stat-card.blue::after  { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.stat-card.green::after { background: linear-gradient(90deg, var(--secondary), #34D399); }
.stat-card.amber::after { background: linear-gradient(90deg, var(--accent), #FCD34D); }
.stat-card.red::after   { background: linear-gradient(90deg, var(--danger), #F87171); }
.stat-card.purple::after { background: linear-gradient(90deg, var(--purple), #A78BFA); }

.stat-icon {
  width: 38px; height: 38px;
  border-radius: var(--border-r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.stat-icon.blue   { background: var(--primary-50); color: var(--primary); }
.stat-icon.green  { background: var(--secondary-50); color: var(--secondary); }
.stat-icon.amber  { background: var(--accent-50); color: var(--accent); }
.stat-icon.red    { background: var(--danger-50); color: var(--danger); }
.stat-icon.purple { background: var(--purple-50); color: var(--purple); }

.stat-icon svg { width: 20px; height: 20px; }

.stat-info .label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: .15rem;
}

.stat-info .value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.stat-info .change {
  font-size: .7rem;
  color: var(--secondary);
  margin-top: .15rem;
  font-weight: 500;
}

/* ================================================================
   CARDS & PANELS
   ================================================================ */
.card {
  background: white;
  border-radius: var(--border-r);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.card-header {
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.card-body { padding: 1rem; }
.card-footer {
  padding: .5rem 1rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  border-radius: 0 0 var(--border-r) var(--border-r);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .8rem;
  border-radius: var(--border-r-sm);
  font-size: .8125rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.35;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 1px 4px rgba(30,64,175,.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 0 2px 6px rgba(30,64,175,.3);
  transform: translateY(-1px);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); }

.btn-success {
  background: linear-gradient(135deg, var(--secondary) 0%, #34D399 100%);
  color: white;
  box-shadow: 0 1px 4px rgba(5,150,105,.2);
}
.btn-success:hover { box-shadow: 0 2px 6px rgba(5,150,105,.3); transform: translateY(-1px); color: white; }

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #F87171 100%);
  color: white;
  box-shadow: 0 1px 4px rgba(220,38,38,.2);
}
.btn-danger:hover { transform: translateY(-1px); color: white; }

.btn-warning {
  background: linear-gradient(135deg, var(--warning) 0%, var(--accent) 100%);
  color: white;
}
.btn-warning:hover { transform: translateY(-1px); color: white; }

.btn-info {
  background: linear-gradient(135deg, var(--info) 0%, #38BDF8 100%);
  color: white;
}

.btn-sm { padding: .25rem .5rem; font-size: .75rem; border-radius: 5px; }
.btn-lg { padding: .5rem 1rem; font-size: .875rem; }
.btn-xl { padding: .65rem 1.25rem; font-size: .9375rem; border-radius: var(--border-r); }
.btn-icon { padding: .35rem; border-radius: 6px; }

/* ================================================================
   FORMS
   ================================================================ */
.form-group { margin-bottom: .875rem; }

.form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .25rem;
}

.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: .375rem .75rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--border-r-sm);
  font-size: .8125rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: white;
  transition: var(--transition);
  outline: none;
  appearance: none;
  min-height: 34px;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2.5px rgba(59,130,246,.12);
  background: white;
}

.form-control:disabled {
  background: var(--gray-50);
  color: var(--gray-400);
  cursor: not-allowed;
}

.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 2.5px rgba(220,38,38,.12); }
.form-control.is-valid { border-color: var(--secondary); }

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

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

.form-text { font-size: .75rem; color: var(--gray-500); margin-top: .2rem; }
.invalid-feedback { font-size: .75rem; color: var(--danger); margin-top: .2rem; display: none; }
.form-control.is-invalid + .invalid-feedback { display: block; }

.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-control { border-radius: var(--border-r-sm) 0 0 var(--border-r-sm); }
.input-group-text {
  padding: .375rem .75rem;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-300);
  border-left: none;
  border-radius: 0 var(--border-r-sm) var(--border-r-sm) 0;
  font-size: .8125rem;
  color: var(--gray-600);
  display: flex; align-items: center;
}

/* ================================================================
   TABLES
   ================================================================ */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
}

.table th {
  padding: .5rem .75rem;
  background: var(--gray-50);
  font-weight: 600;
  font-size: .75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 1.5px solid var(--gray-200);
  white-space: nowrap;
  text-align: left;
}

.table td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.table tbody tr:hover { background: var(--gray-50); }
.table tbody tr:last-child td { border-bottom: none; }

/* ================================================================
   BADGES / PILLS
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.35;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge-success   { background: var(--secondary-50); color: var(--secondary); }
.badge-primary   { background: var(--primary-100); color: var(--primary); }
.badge-warning   { background: var(--warning-50); color: var(--warning); }
.badge-danger    { background: var(--danger-50); color: var(--danger); }
.badge-info      { background: var(--info-50); color: var(--info); }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }
.badge-purple    { background: var(--purple-50); color: var(--purple); }

/* ================================================================
   STATUS BADGES
   ================================================================ */
.status-aktif               { @extend .badge-success; }
.status-menunggu_verifikasi { @extend .badge-warning; }
.status-menunggu_pembayaran { @extend .badge-warning; }
.status-ditolak             { @extend .badge-danger; }
.status-nonaktif            { @extend .badge-secondary; }

/* ================================================================
   FILE UPLOAD ZONE
   ================================================================ */
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--border-r);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
  position: relative;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary-light);
  background: var(--primary-50);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-zone .upload-icon {
  width: 48px; height: 48px;
  margin: 0 auto .75rem;
  color: var(--gray-400);
}

.upload-zone:hover .upload-icon { color: var(--primary-light); }

.upload-zone .upload-text { font-size: .9rem; color: var(--gray-600); }
.upload-zone .upload-hint { font-size: .8rem; color: var(--gray-400); margin-top: .25rem; }

.file-preview-list { margin-top: 1rem; }

.file-preview-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .875rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-r-sm);
  margin-bottom: .5rem;
}

.file-preview-item .file-icon { color: var(--primary); flex-shrink: 0; }
.file-preview-item .file-name { font-size: .8125rem; font-weight: 500; flex: 1; }
.file-preview-item .file-size { font-size: .75rem; color: var(--gray-400); }
.file-preview-item .file-remove {
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  padding: .25rem;
  border-radius: 4px;
  transition: var(--transition);
}
.file-preview-item .file-remove:hover { color: var(--danger); background: var(--danger-50); }

.progress-bar-wrap {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin-top: .375rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 2px;
  transition: width .3s ease;
}

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
  padding: .875rem 1.125rem;
  border-radius: var(--border-r-sm);
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  border: 1px solid;
}

.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.alert-success { background: var(--secondary-50); border-color: #A7F3D0; color: #065F46; }
.alert-danger   { background: var(--danger-50);   border-color: #FECACA; color: #991B1B; }
.alert-warning  { background: var(--warning-50);  border-color: #FDE68A; color: #92400E; }
.alert-info     { background: var(--info-50);     border-color: #BAE6FD; color: #075985; }

/* ================================================================
   LOWONGAN CARDS
   ================================================================ */
.job-card {
  background: white;
  border-radius: var(--border-r);
  border: 1px solid var(--gray-200);
  padding: 1.375rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.job-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
  transform: translateY(-3px);
}

.job-card .company-logo {
  width: 52px; height: 52px;
  border-radius: var(--border-r-sm);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--primary);
  flex-shrink: 0;
}

.job-card .job-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.job-card .job-company {
  font-size: .875rem;
  color: var(--gray-500);
  margin-top: .125rem;
}

.job-card .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.job-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .625rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 500;
}

.job-tag svg { width: 12px; height: 12px; }

/* ================================================================
   MEMBER PROFILE
   ================================================================ */
.profile-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--border-r-lg);
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}

.page-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 .5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-r-sm);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: var(--transition);
  background: white;
}

.page-link:hover { border-color: var(--primary-light); color: var(--primary); }
.page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 700;
}
.page-link.disabled { opacity: .4; pointer-events: none; }

/* ================================================================
   MODALS
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .25s;
}

.modal-overlay.show { opacity: 1; }

.modal-box {
  background: white;
  border-radius: var(--border-r-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform .3s ease;
}

.modal-overlay.show .modal-box { transform: translateY(0); }

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}

.modal-title { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); }

.modal-close {
  background: none; border: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-400);
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-700); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  display: flex; justify-content: flex-end; gap: .75rem;
}

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  max-width: 360px;
}

.toast {
  background: white;
  border-radius: var(--border-r);
  box-shadow: var(--shadow-xl);
  padding: .875rem 1.125rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border-left: 4px solid;
  animation: toastIn .3s ease;
  min-width: 280px;
}

.toast.success { border-color: var(--secondary); }
.toast.error   { border-color: var(--danger); }
.toast.warning { border-color: var(--accent); }
.toast.info    { border-color: var(--info); }

.toast .toast-icon { flex-shrink: 0; margin-top: 1px; }
.toast.success .toast-icon { color: var(--secondary); }
.toast.error   .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--accent); }
.toast.info    .toast-icon { color: var(--info); }

.toast .toast-msg {
  flex: 1;
  font-size: .875rem;
  color: var(--gray-800);
  font-weight: 500;
}

.toast .toast-close {
  background: none; border: none;
  cursor: pointer; color: var(--gray-400);
  padding: 0; margin-left: auto;
  transition: var(--transition);
}
.toast .toast-close:hover { color: var(--gray-700); }

/* ================================================================
   SKELETON LOADING
   ================================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-r-sm);
}

/* ================================================================
   STEP INDICATOR
   ================================================================ */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: .5rem;
}

.step {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem;
  border: 2px solid var(--gray-300);
  background: white;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: var(--transition);
}

.step.active .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(30,64,175,.15);
}

.step.done .step-circle {
  border-color: var(--secondary);
  background: var(--secondary);
  color: white;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  min-width: 40px;
}

.step.done + .step .step-line,
.step.done .step-line { background: var(--secondary); }

.step-label {
  font-size: .75rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: .375rem;
  font-weight: 500;
  white-space: nowrap;
}

.step.active .step-label { color: var(--primary); font-weight: 600; }
.step.done .step-label   { color: var(--secondary); }

.step-wrap { display: flex; flex-direction: column; align-items: center; }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
}

.empty-state .empty-icon {
  width: 80px; height: 80px;
  margin: 0 auto 1.25rem;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
}

.empty-state .empty-icon svg { width: 36px; height: 36px; }
.empty-state h3 { font-size: 1.0625rem; font-weight: 700; color: var(--gray-700); }
.empty-state p  { font-size: .875rem; color: var(--gray-400); margin-top: .5rem; max-width: 320px; margin-inline: auto; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0%   { background-position: -400% 0; }
  100% { background-position: 400% 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

.animate-spin { animation: spin 1s linear infinite; }
.animate-fadein { animation: fadeIn .3s ease; }
.animate-slideup { animation: slideUp .4s ease; }

/* ================================================================
   RESPONSIVE — Mobile First
   ================================================================ */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,.25);
  }

  .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .topbar-toggle { display: flex; }

  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999;
    backdrop-filter: blur(2px);
  }

  .sidebar-overlay.show { display: block; }

  .page-content { padding: 1rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .875rem; }

  .page-header { margin-bottom: 1.25rem; }
}

@media (max-width: 575.98px) {
  .auth-card { padding: 1.75rem 1.25rem; margin: .75rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .card-body { padding: 1rem; }
  .table { font-size: .8125rem; }
  .table th, .table td { padding: .625rem .75rem; }
  .toast-container { left: 1rem; right: 1rem; max-width: 100%; }
  .modal-box { max-height: 95vh; margin: .5rem; }
  .btn { font-size: .8125rem; }
}

/* ================================================================
   UTILITIES
   ================================================================ */
.d-flex       { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-500); }
.text-danger { color: var(--danger); }
.text-success { color: var(--secondary); }
.text-primary { color: var(--primary); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-auto { margin-top: auto; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--border-r-sm); }
.rounded-full { border-radius: 999px; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.cursor-pointer { cursor: pointer; }
.small { font-size: .8125rem; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Custom Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn .2s ease;
}
.modal-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
}
.modal-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: 6px;
  line-height: 1;
}
.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}
.modal-body {
  padding: 1.25rem;
}
.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

