/* 
   Yayasan Al-Kautsar 561 - Open Recruitment System
   JobStreet-Inspired Clean, Simple & Modern Aesthetic
*/

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

:root {
  --js-navy: #057939;
  --js-navy-hover: #035c2b;
  --js-blue: #057939;
  --js-blue-light: #e8f5ee;
  --js-blue-border: #a7d9be;

  --js-bg: #f4f7f5;
  --js-card-bg: #ffffff;
  --js-border: #e2e8f0;
  --js-border-hover: #cbd5e1;

  --js-text-main: #0f291e;
  --js-text-muted: #526b5e;
  --js-text-subtle: #8da498;

  --js-green: #057939;
  --js-green-light: #e8f5ee;
  --js-orange: #d97706;
  --js-orange-light: #fef3c7;
  --js-red: #dc2626;
  --js-red-light: #fee2e2;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--js-bg);
  color: var(--js-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--js-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* TOP HEADER / NAVBAR (JOBSTREET STYLE) */
.js-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--js-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.js-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.js-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.js-brand-icon {
  width: 44px;
  height: 44px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.js-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.js-brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--js-navy);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.js-brand-text span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--js-text-muted);
}

.js-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.js-nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--js-text-main);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none !important;
}

.js-nav-link:hover, .js-nav-link.active {
  color: var(--js-navy);
  border-bottom-color: var(--js-navy);
}

.js-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--js-navy);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--js-navy-hover);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--js-text-main);
  border-color: #cbd5e1;
}
.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-outline-primary {
  background: #ffffff;
  color: var(--js-navy);
  border-color: var(--js-navy);
}
.btn-outline-primary:hover {
  background: var(--js-blue-light);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
}

/* JOBSTREET HERO SEARCH BANNER */
.js-search-hero {
  background: linear-gradient(135deg, #057939 0%, #034b22 100%);
  color: #ffffff;
  padding: 2.25rem 1.25rem;
}

.js-search-container {
  max-width: 1240px;
  margin: 0 auto;
}

.js-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.js-hero-subtitle {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.js-search-bar {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.js-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 1rem;
  border-right: 1px solid #e2e8f0;
}

.js-search-input-wrap:last-of-type {
  border-right: none;
}

.js-search-input-wrap i {
  color: #64748b;
  font-size: 1rem;
}

.js-search-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--js-text-main);
}

.js-search-input::placeholder {
  color: #94a3b8;
}

/* MAIN CONTENT CONTAINER */
.js-main-wrap {
  max-width: 1240px;
  margin: 1.75rem auto;
  padding: 0 1.25rem;
  flex-grow: 1;
  width: 100%;
}

/* QUICK FILTER TAGS */
.js-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.js-chip {
  background: #ffffff;
  border: 1px solid var(--js-border);
  color: var(--js-text-main);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s;
  cursor: pointer;
}

.js-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.js-chip.active {
  background: var(--js-blue-light);
  color: var(--js-navy);
  border-color: var(--js-blue-border);
  font-weight: 700;
}

/* SPLIT 2-COLUMN VIEW (JOB LIST + DETAIL VIEWER) */
.js-split-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* LEFT COLUMN: JOB LIST */
.js-job-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.js-job-card {
  background: #ffffff;
  border: 1px solid var(--js-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none !important;
  display: block;
}

.js-job-card:hover {
  border-color: var(--js-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.js-job-card.active {
  border: 2px solid var(--js-navy);
  box-shadow: 0 4px 12px rgba(13, 56, 128, 0.12);
}

.js-job-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--js-blue);
  margin-bottom: 4px;
  line-height: 1.3;
}
.js-job-card:hover .js-job-title {
  color: var(--js-navy);
  text-decoration: underline;
}

.js-job-company {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--js-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.js-job-location {
  font-size: 0.82rem;
  color: var(--js-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.js-job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.js-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: var(--js-text-main);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.js-badge-quota {
  background: var(--js-orange-light);
  color: var(--js-orange);
}

.js-badge-test {
  background: var(--js-green-light);
  color: var(--js-green);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  line-height: 1.2;
}

.badge-pill.passed    { background: #dcfce7; color: #15803d; }
.badge-pill.pending   { background: #fef3c7; color: #b45309; }
.badge-pill.rejected  { background: #fee2e2; color: #b91c1c; }
.badge-pill.default   { background: #f1f5f9; color: #475569; }

.js-job-snippet {
  font-size: 0.85rem;
  color: var(--js-text-muted);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.js-job-meta-footer {
  font-size: 0.75rem;
  color: var(--js-text-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}

/* RIGHT COLUMN: JOB DETAIL PANEL */
.js-detail-panel {
  background: #ffffff;
  border: 1px solid var(--js-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: 75px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.js-detail-header {
  border-bottom: 1px solid var(--js-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.js-detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--js-navy);
  line-height: 1.25;
  margin-bottom: 6px;
}

.js-detail-company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--js-text-main);
  margin-bottom: 4px;
}

.js-detail-location {
  font-size: 0.88rem;
  color: var(--js-text-muted);
  margin-bottom: 1.25rem;
}

.js-detail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.js-detail-section {
  margin-bottom: 1.75rem;
}

.js-detail-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--js-text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.js-detail-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.7;
}

.js-req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #334155;
}

.js-req-list li {
  position: relative;
  padding-left: 20px;
}

.js-req-list li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--js-blue);
  font-weight: bold;
}

/* JADWAL TES CARD IN DETAIL */
.js-schedule-box {
  background: #f8fafc;
  border: 1px solid var(--js-border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}

.js-schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.85rem;
}
.js-schedule-row:last-child {
  border-bottom: none;
}

/* FORM STYLES (JOBSTREET STYLE QUICK APPLY) */
.js-form-card {
  background: #ffffff;
  border: 1px solid var(--js-border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--js-text-main);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--js-text-main);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--js-blue);
  box-shadow: 0 0 0 3px rgba(5, 121, 57, 0.15);
}

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

.form-group-full {
  grid-column: span 2;
}

/* STATUS TRACKER PAGE (JOBSTREET APPLIED JOBS) */
.js-tracker-card {
  background: #ffffff;
  border: 1px solid var(--js-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.js-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--js-border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.js-status-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.js-status-pill.scheduled { background: #e0f2fe; color: #0369a1; }
.js-status-pill.pass      { background: var(--js-green-light); color: var(--js-green); }
.js-status-pill.pending   { background: var(--js-orange-light); color: var(--js-orange); }
.js-status-pill.reject    { background: var(--js-red-light); color: var(--js-red); }

/* FOOTER (JOBSTREET CLEAN STYLE) */
.js-footer {
  background: #ffffff;
  border-top: 1px solid var(--js-border);
  margin-top: auto;
  padding: 2rem 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: var(--js-text-muted);
}

.js-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.js-footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.js-footer-links a {
  color: var(--js-text-muted);
}
.js-footer-links a:hover {
  color: var(--js-navy);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .js-split-layout {
    grid-template-columns: 1fr;
  }
  .js-detail-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .js-nav-menu {
    display: none;
  }
  .js-search-bar {
    flex-direction: column;
  }
  .js-search-input-wrap {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .js-footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* DOCUMENT UPLOAD UI COMPONENT */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}

.upload-card {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.upload-card:hover, .upload-card.dragover {
  border-color: var(--js-blue);
  background: #f8fafc;
}

.upload-card.has-file {
  border-color: #10b981;
  background: #f0fdf4;
  border-style: solid;
}

.upload-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.upload-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--js-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.2s;
}

.upload-card.has-file .upload-icon-box {
  background: #dcfce7;
  color: #15803d;
}

.upload-card-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--js-navy);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.upload-card-info p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.upload-badge-req {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fee2e2;
  color: #b91c1c;
}

.upload-badge-opt {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
}

.upload-input-wrap {
  position: relative;
  margin-top: 0.5rem;
}

.upload-input-file {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.upload-btn-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-card:hover .upload-btn-trigger {
  background: #ffffff;
  border-color: var(--js-blue);
  color: var(--js-blue);
}

.upload-selected-file {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #166534;
  margin-top: 0.5rem;
  position: relative;
  z-index: 10;
  gap: 8px;
}

.upload-selected-file button {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upload-selected-file button:hover {
  background: #fecaca;
  color: #991b1b;
}

.upload-card.has-file .upload-selected-file {
  display: flex;
}

.upload-card.has-file .upload-input-file {
  pointer-events: none;
}

.upload-card.has-file .upload-btn-trigger {
  display: none;
}

/* =========================================================
   PRINT STYLESHEET (OPTIMASI CETAK KARTU UJIAN & DOKUMEN)
   ========================================================= */
@media print {
  .no-print,
  .js-navbar,
  .js-footer,
  header,
  footer,
  .btn,
  .btn-primary,
  .btn-secondary,
  .js-nav-actions,
  .doc-chips-container {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .js-main-wrap {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .js-tracker-header,
  .js-tracker-card > div:nth-child(2),
  .js-tracker-card > div[style*="linear-gradient"],
  .js-tracker-card > div[style*="background: #ffffff; border: 1px solid var(--js-border)"],
  .js-schedule-box {
    display: none !important;
  }

  .js-tracker-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #printTicketCard {
    display: block !important;
    border: 2px solid #0f172a !important;
    border-radius: 6px !important;
    margin: 0 !important;
    padding: 16px !important;
    page-break-inside: avoid !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }
}

