/* ==========================================================================
   PT PANJIMAS TEXTILE - CANDIDATE PORTAL DESIGN SYSTEM
   Theme: Deep Navy (#0f172a), Royal Blue (#1e40af), Slate Background (#f8fafc)
   ========================================================================== */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent; 
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
  background-color: #f8fafc; 
  color: #0f172a; 
  line-height: 1.5; 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
}

/* Navbar */
.navbar { 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  background: rgba(255, 255, 255, 0.98); 
  backdrop-filter: blur(8px); 
  border-bottom: 1px solid #e2e8f0; 
}

.nav-container { 
  max-width: 1140px; 
  margin: 0 auto; 
  padding: 0.75rem 1.25rem; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 0.75rem; 
  text-decoration: none; 
  color: #0f172a; 
}

.brand-logo-icon { 
  width: 40px; 
  height: 40px; 
  background: linear-gradient(135deg, #0f172a, #1e40af); 
  border-radius: 10px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: #ffffff; 
  font-weight: 800; 
  font-size: 1.2rem; 
}

.brand-text h1 { 
  font-size: 1.05rem; 
  font-weight: 800; 
  line-height: 1.1; 
  letter-spacing: -0.02em; 
  color: #0f172a; 
}

.brand-text span { 
  font-size: 0.7rem; 
  color: #64748b; 
  font-weight: 600; 
  letter-spacing: 0.05em; 
}

.nav-right { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  position: relative; 
}

.nav-menu-link { 
  text-decoration: none; 
  font-size: 0.85rem; 
  font-weight: 700; 
  color: #1e40af; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  gap: 0.35rem; 
  background: #eff6ff; 
  padding: 0.45rem 0.85rem; 
  border-radius: 999px; 
  transition: all 0.15s ease; 
  border: 1px solid #bfdbfe; 
}

.nav-menu-link:hover { 
  background: #dbeafe; 
}

/* User Avatar & Dropdown */
.profile-dropdown-wrapper { 
  position: relative; 
}

.user-avatar-badge { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  cursor: pointer; 
  padding: 0.3rem 0.6rem; 
  border-radius: 8px; 
  transition: all 0.15s ease; 
  background: #ffffff; 
  border: 1px solid #cbd5e1; 
}

.user-avatar-badge:hover { 
  background: #f1f5f9; 
}

.user-avatar { 
  width: 32px; 
  height: 32px; 
  border-radius: 50%; 
  background: #1e40af; 
  color: #ffffff; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 800; 
  font-size: 0.85rem; 
  border: 2px solid #dbeafe; 
}

.dropdown-menu { 
  display: none; 
  position: absolute; 
  right: 0; 
  top: 120%; 
  background: #ffffff; 
  border: 1px solid #cbd5e1; 
  border-radius: 10px; 
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.18); 
  width: 230px; 
  z-index: 1000; 
  overflow: hidden; 
}

.dropdown-menu.active { 
  display: block; 
  animation: dropIn 0.15s ease-out; 
}

.dropdown-header { 
  padding: 0.85rem 1rem; 
  border-bottom: 1px solid #f1f5f9; 
  background: #f8fafc; 
}

.dropdown-item { 
  display: block; 
  width: 100%; 
  text-align: left; 
  padding: 0.75rem 1rem; 
  background: none; 
  border: none; 
  font-size: 0.85rem; 
  font-weight: 600; 
  color: #334155; 
  cursor: pointer; 
  transition: background 0.15s; 
  text-decoration: none; 
}

.dropdown-item:hover { 
  background: #eff6ff; 
  color: #1e40af; 
}

.dropdown-item.danger { 
  color: #dc2626; 
  border-top: 1px solid #f1f5f9; 
}

.dropdown-item.danger:hover { 
  background: #fef2f2; 
}

@keyframes dropIn { 
  from { opacity: 0; transform: translateY(-8px); } 
  to { opacity: 1; transform: translateY(0); } 
}

/* Hero Section */
.hero { 
  position: relative; 
  background: #0f172a; 
  color: #ffffff; 
  padding: 4.5rem 1.25rem 4.5rem; 
  text-align: center; 
  overflow: hidden; 
}

.hero-bg-overlay { 
  position: absolute; 
  inset: 0; 
  background-image: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.92)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1600&q=80'); 
  background-size: cover; 
  background-position: center; 
  pointer-events: none; 
}

.hero-content { 
  position: relative; 
  z-index: 2; 
  max-width: 760px; 
  margin: 0 auto; 
}

.hero-tag { 
  display: inline-block; 
  background: rgba(255, 255, 255, 0.12); 
  border: 1px solid rgba(255, 255, 255, 0.25); 
  padding: 0.35rem 0.9rem; 
  border-radius: 999px; 
  font-size: 0.75rem; 
  font-weight: 600; 
  margin-bottom: 1.25rem; 
  color: #bfdbfe; 
}

.hero h2 { 
  font-size: 2.1rem; 
  font-weight: 800; 
  line-height: 1.25; 
  margin-bottom: 0.85rem; 
  letter-spacing: -0.02em; 
  color: #ffffff; 
}

@media (min-width: 640px) { 
  .hero h2 { font-size: 2.6rem; } 
}

.hero p { 
  font-size: 0.95rem; 
  color: #cbd5e1; 
  margin-bottom: 2rem; 
}

/* Instant Search Box */
.search-box { 
  background: #ffffff; 
  border-radius: 12px; 
  padding: 0.5rem; 
  display: flex; 
  flex-direction: column; 
  gap: 0.5rem; 
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35); 
  text-align: left; 
}

@media (min-width: 640px) { 
  .search-box { 
    flex-direction: row; 
    align-items: center; 
  } 
}

.search-input { 
  flex: 1; 
  border: none; 
  padding: 0.85rem 1rem; 
  font-size: 0.9rem; 
  color: #0f172a; 
  outline: none; 
  border-radius: 8px; 
}

.filter-select { 
  border: 1px solid #cbd5e1; 
  padding: 0.85rem 1rem; 
  border-radius: 8px; 
  font-size: 0.85rem; 
  color: #0f172a; 
  background: #f8fafc; 
  outline: none; 
}

/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem; 
  font-size: 0.875rem; 
  font-weight: 600; 
  padding: 0.65rem 1.25rem; 
  border-radius: 8px; 
  border: none; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  text-decoration: none; 
  font-family: inherit; 
}

.btn-primary { 
  background: #1e40af; 
  color: #ffffff; 
}

.btn-primary:hover { 
  background: #1d4ed8; 
}

.btn-secondary { 
  background: #f1f5f9; 
  color: #0f172a; 
  border: 1px solid #cbd5e1; 
}

.btn-secondary:hover { 
  background: #e2e8f0; 
}

.btn-danger-outline { 
  background: #ffffff; 
  color: #dc2626; 
  border: 1px solid #fecaca; 
}

.btn-danger-outline:hover { 
  background: #fef2f2; 
  border-color: #dc2626; 
}

.btn-sm { 
  padding: 0.45rem 0.9rem; 
  font-size: 0.8rem; 
  border-radius: 6px; 
}

.btn-block { 
  width: 100%; 
}

/* Tabs */
.app-tabs { 
  max-width: 1140px; 
  margin: 1.5rem auto 0; 
  padding: 0 1.25rem; 
  display: flex; 
  gap: 0.75rem; 
  border-bottom: 1px solid #e2e8f0; 
}

.tab-link { 
  background: none; 
  border: none; 
  padding: 0.75rem 1.25rem; 
  font-size: 0.95rem; 
  font-weight: 700; 
  color: #64748b; 
  cursor: pointer; 
  border-bottom: 3px solid transparent; 
  transition: all 0.2s; 
}

.tab-link.active { 
  color: #1e40af; 
  border-bottom-color: #1e40af; 
}

/* Job Cards Container */
.main-wrapper { 
  max-width: 1140px; 
  margin: 1.5rem auto 3.5rem; 
  padding: 0 1.25rem; 
  flex: 1; 
  width: 100%; 
}

.job-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1.25rem; 
  margin-top: 1rem; 
}

@media (min-width: 768px) { 
  .job-grid { grid-template-columns: repeat(2, 1fr); } 
}

/* Standarisasi Ukuran Kartu Loker */
.job-card { 
  background: #ffffff; 
  border: 1.5px solid #cbd5e1; 
  border-radius: 12px; 
  padding: 1.25rem 1.35rem; 
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); 
  cursor: pointer; 
  transition: all 0.2s ease; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  min-height: 210px; 
  height: 100%;
}

.job-card:hover { 
  border-color: #1e40af; 
  transform: translateY(-3px); 
  box-shadow: 0 10px 20px -5px rgba(30, 64, 175, 0.12); 
}

.job-card-title { 
  font-size: 1.1rem; 
  font-weight: 800; 
  color: #0f172a; 
  text-transform: uppercase; 
  margin-bottom: 0.65rem; 
  line-height: 1.3;
}

.job-card-qualifications strong { 
  color: #0f172a; 
  display: block; 
  margin-bottom: 0.35rem; 
  font-size: 0.85rem;
}

/* Kunci Standar 3 Baris: Memotong teks panjang secara rapi */
.job-card-qualifications-text { 
  font-size: 0.85rem; 
  color: #475569; 
  line-height: 1.5; 
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em; /* 3 baris x 1.5 line-height */
}

.job-card-hint { 
  margin-top: 1rem; 
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.75rem; 
  font-weight: 700; 
  color: #1e40af; 
  display: flex; 
  align-items: center; 
  gap: 0.35rem; 
}

/* Status Badges */
.status-badge { 
  display: inline-block; 
  padding: 0.25rem 0.65rem; 
  border-radius: 999px; 
  font-size: 0.72rem; 
  font-weight: 800; 
  text-transform: uppercase; 
}

.status-applied { background: #dbeafe; color: #1e40af; }
.status-screening { background: #fef3c7; color: #92400e; }
.status-interview { background: #f3e8ff; color: #6b21a8; }
.status-accepted { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-cancelled { background: #f1f5f9; color: #64748b; }

/* Pagination */
.pagination { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 0.35rem; 
  margin-top: 2.5rem; 
}

.page-btn { 
  padding: 0.5rem 0.85rem; 
  border: 1px solid #cbd5e1; 
  background: #ffffff; 
  color: #0f172a; 
  border-radius: 6px; 
  font-size: 0.85rem; 
  font-weight: 600; 
  cursor: pointer; 
}

.page-btn.active { 
  background: #1e40af; 
  color: #ffffff; 
  border-color: #1e40af; 
}

/* Modern Modals */
.modal-overlay { 
  position: fixed; 
  inset: 0; 
  background: rgba(15, 23, 42, 0.75); 
  backdrop-filter: blur(4px); 
  z-index: 1000; 
  display: none; 
  align-items: flex-end; 
  justify-content: center; 
  padding: 1rem; 
}

.modal-overlay.active { 
  display: flex; 
  animation: fadeIn 0.2s ease-out; 
}

.modal-sheet { 
  background: #ffffff; 
  width: 100%; 
  max-width: 600px; 
  border-radius: 14px; 
  max-height: 90vh; 
  overflow-y: auto; 
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.25); 
}

@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}

.modal-header-navy { 
  background: #0f172a; 
  color: #ffffff; 
  padding: 1.25rem 1.5rem; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  border-bottom: 2px solid #1e40af; 
}

.modal-header-navy h3 { 
  font-size: 1.15rem; 
  font-weight: 800; 
  color: #ffffff; 
}

.modal-body { 
  padding: 1.5rem; 
}

.form-group { 
  margin-bottom: 1.1rem; 
}

.form-label { 
  display: block; 
  font-size: 0.8rem; 
  font-weight: 700; 
  color: #334155; 
  margin-bottom: 0.35rem; 
}

.form-control { 
  width: 100%; 
  padding: 0.75rem 0.9rem; 
  border: 1.5px solid #cbd5e1; 
  border-radius: 8px; 
  font-size: 0.9rem; 
  font-family: inherit; 
  background: #ffffff; 
  outline: none; 
}

.form-control:focus { 
  border-color: #1e40af; 
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12); 
}

.checkbox-label { 
  display: flex; 
  align-items: flex-start; 
  gap: 0.6rem; 
  font-size: 0.85rem; 
  color: #475569; 
  margin: 1rem 0; 
  cursor: pointer; 
}

/* Matcher Result Card */
.match-card { 
  background: #eff6ff; 
  border: 1px solid #bfdbfe; 
  border-radius: 8px; 
  padding: 1rem; 
  margin-bottom: 0.75rem; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.match-score { 
  font-size: 1.25rem; 
  font-weight: 800; 
  color: #1e40af; 
}

/* Custom Floating Toast */
#toast-container { 
  position: fixed; 
  top: 1.25rem; 
  right: 1.25rem; 
  z-index: 2000; 
  display: flex; 
  flex-direction: column; 
  gap: 0.5rem; 
  pointer-events: none; 
}

.toast { 
  pointer-events: auto; 
  background: #ffffff; 
  border: 1px solid #e2e8f0; 
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); 
  padding: 0.85rem 1.15rem; 
  border-radius: 8px; 
  font-size: 0.875rem; 
  font-weight: 600; 
  min-width: 280px; 
  max-width: 360px; 
}

.toast-success { border-left: 4px solid #16a34a; color: #166534; }
.toast-error { border-left: 4px solid #dc2626; color: #991b1b; }
.toast-info { border-left: 4px solid #1e40af; color: #1e40af; }

/* Footer */
.footer { 
  background: #0f172a !important; 
  color: #ffffff !important; 
  padding: 3rem 1.25rem 2rem !important; 
  border-top: 4px solid #1e40af !important; 
  margin-top: auto; 
}

.footer-container { 
  max-width: 1140px; 
  margin: 0 auto; 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 2rem; 
}

@media (min-width: 768px) { 
  .footer-container { grid-template-columns: 2fr 1fr 1fr; } 
}

.footer-col h4 { 
  font-size: 1.05rem; 
  font-weight: 800; 
  margin-bottom: 1rem; 
  color: #ffffff; 
}

.footer-col p { 
  font-size: 0.85rem; 
  color: #94a3b8; 
  line-height: 1.6; 
}

.footer-links { 
  list-style: none; 
}

.footer-links li { 
  margin-bottom: 0.6rem; 
}

.footer-links a { 
  color: #cbd5e1; 
  text-decoration: none; 
  font-size: 0.85rem; 
}

.footer-bottom { 
  max-width: 1140px; 
  margin: 2.5rem auto 0; 
  padding-top: 1.5rem; 
  border-top: 1px solid #1e293b; 
  text-align: center; 
  font-size: 0.75rem; 
  color: #64748b; 
}

@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}