/* E-JUST Recruitment Platform - Custom Styles (Bootstrap 5 compatible) */
:root{
  --primary:#2563eb; /* blue-600 */
  --primary-dark:#1d4ed8; /* blue-700 */
  --success:#16a34a; /* green-600 */
  --success-dark:#15803d; /* green-700 */
  --danger:#dc2626; /* red-600 */
  --danger-dark:#b91c1c; /* red-700 */
  --gray-50:#f9fafb;
  --gray-100:#f3f4f6;
  --gray-200:#e5e7eb;
  --gray-300:#d1d5db;
  --gray-500:#6b7280;
  --gray-700:#374151;
  --gray-900:#111827;
}

body{font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;}

/* Custom scrollbar */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:#f1f1f1}
::-webkit-scrollbar-thumb{background:#888;border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:#555}

/* Animations */
.fade-in{animation:fadeIn .5s ease-in}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.slide-in{animation:slideIn .3s ease-out}
@keyframes slideIn{from{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}

/* Light custom helpers */
.text-muted-700{color:var(--gray-700)}
.bg-soft{background:var(--gray-50)}
.border-soft{border-color:var(--gray-200)}
.hidden{display:none !important}

/* Bootstrap-compatible custom form classes */
.form-input-custom,.form-select-custom{
  display:block;
  width:100%;
  padding:.375rem .75rem;
  font-size:1rem;
  line-height:1.5;
  color:var(--bs-body-color);
  background-color:var(--bs-body-bg);
  background-clip:padding-box;
  border:1px solid var(--bs-border-color);
  border-radius:.375rem;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.form-input-custom:focus,.form-select-custom:focus{
  border-color:rgba(13,110,253,.5);
  box-shadow:0 0 0 .25rem rgba(13,110,253,.25);
  outline:0;
}

/* Sidebar layout offset */
.sidebar-offset{margin-left:260px}
@media (max-width: 767.98px){
  .sidebar-offset{margin-left:0}
}
.sidebar-collapsed .sidebar-offset{margin-left:0}

.app-sidebar{
  top:64px !important;
  height:calc(100vh - 64px);
  transition:transform .2s ease;
  z-index:1020;
}

.navbar{
  position:sticky;
  top:0;
  z-index:1030;
}

.sidebar-collapsed .app-sidebar{
  transform:translateX(-100%);
}

/* Legacy utility compatibility (minimal subset) */
.flex{display:flex}
.flex-col{flex-direction:column}
.flex-wrap{flex-wrap:wrap}
.flex-1{flex:1 1 0%}
.items-center{align-items:center}
.items-start{align-items:flex-start}
.items-end{align-items:flex-end}
.justify-between{justify-content:space-between}
.justify-center{justify-content:center}
.justify-end{justify-content:flex-end}
.gap-1{gap:.25rem}
.gap-2{gap:.5rem}
.gap-3{gap:1rem}
.gap-4{gap:1.5rem}
.space-x-2{column-gap:.5rem}
.space-x-3{column-gap:.75rem}
.space-x-4{column-gap:1rem}
.space-y-2{row-gap:.5rem}
.space-y-3{row-gap:.75rem}
.space-y-4{row-gap:1rem}
.grid{display:grid}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.w-full{width:100%}
.mx-auto{margin-left:auto;margin-right:auto}
.rounded-full{border-radius:9999px}
.max-w-7xl{max-width:80rem}
.max-w-6xl{max-width:72rem}
.max-w-5xl{max-width:64rem}
.max-w-3xl{max-width:48rem}
.max-w-2xl{max-width:42rem}
.max-w-md{max-width:28rem}
.px-4{padding-left:1rem;padding-right:1rem}
.px-6{padding-left:1.5rem;padding-right:1.5rem}
.py-4{padding-top:1rem;padding-bottom:1rem}
.py-6{padding-top:1.5rem;padding-bottom:1.5rem}
.py-8{padding-top:2rem;padding-bottom:2rem}
.py-12{padding-top:3rem;padding-bottom:3rem}
.py-16{padding-top:4rem;padding-bottom:4rem}
.mt-1{margin-top:.25rem}
.mt-2{margin-top:.5rem}
.mt-3{margin-top:1rem}
.mt-4{margin-top:1.5rem}
.mt-6{margin-top:2rem}
.mb-4{margin-bottom:1.5rem}
.mb-6{margin-bottom:2rem}

/* Color utility compatibility */
.bg-blue-50{background:#eff6ff}
.bg-blue-100{background:#dbeafe}
.bg-green-50{background:#f0fdf4}
.bg-green-100{background:#dcfce7}
.bg-red-50{background:#fef2f2}
.bg-red-100{background:#fee2e2}
.text-blue-700{color:#1d4ed8}
.text-red-800{color:#991b1b}
.text-green-800{color:#166534}
.border-gray-100{border-color:#f3f4f6}
.border-gray-200{border-color:#e5e7eb}

/* Tables */
/* Tables */
.table-container{overflow-x:auto}
.sortable{cursor:pointer}

/* Status badges */
.status-badge{display:inline-flex;align-items:center;padding:.125rem .625rem;border-radius:9999px;font-size:.75rem;font-weight:700}
.status-draft{background:#f3f4f6;color:#374151}
.status-submitted{background:#fef3c7;color:#92400e}
.status-under-review{background:#dbeafe;color:#1e40af}
.status-shortlisted{background:#ede9fe;color:#5b21b6}
.status-interview{background:#e0e7ff;color:#3730a3}
.status-selected{background:#dcfce7;color:#166534}
.status-rejected{background:#fee2e2;color:#991b1b}

/* Modal (custom overlay, scoped to avoid Bootstrap conflicts) */
.modal-overlay{position:fixed;inset:0;background:rgba(107,114,128,.75);z-index:1050}
.modal-container{position:fixed;inset:0;z-index:1050;overflow-y:auto}
.modal-overlay .modal{display:flex;min-height:100%;align-items:flex-end;justify-content:center;padding:1rem;text-align:center}
@media(min-width:640px){.modal-overlay .modal{align-items:center;padding:0}}
.modal-overlay .modal-content{position:relative;transform:translateZ(0);background:#fff;border-radius:.75rem;overflow:hidden;box-shadow:0 10px 25px rgba(0,0,0,.15);padding:1.25rem;width:100%;max-width:42rem;text-align:left}
.modal-overlay .modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.modal-overlay .close-modal{padding:.25rem .5rem;border-radius:.375rem;color:var(--gray-500)}
.modal-overlay .close-modal:hover{background:var(--gray-100)}

/* Step indicator (application form) */
.step-indicator{display:flex;align-items:center;gap:.5rem;padding:.75rem;border:1px solid var(--gray-200);border-radius:.5rem;background:#fff}
.step-indicator .step-number{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:9999px;background:var(--gray-100);font-weight:800;color:var(--gray-700)}
.step-indicator .step-label{font-size:.875rem;font-weight:700;color:var(--gray-700)}
.step-indicator.active{border-color:rgba(37,99,235,.35);background:rgba(37,99,235,.05)}
.step-indicator.active .step-number{background:rgba(37,99,235,.15);color:rgba(30,64,175,1)}
.step-indicator[data-step-status="complete"]{border-color:#16a34a;background:#f0fdf4}
.step-indicator[data-step-status="complete"] .step-number{background:#16a34a;color:#fff}
.step-indicator[data-step-status="complete"] .step-label{color:#166534}
.step-indicator[data-step-status="in_progress"]{border-color:#f59e0b;background:#fffbeb}
.step-indicator[data-step-status="in_progress"] .step-number{background:#f59e0b;color:#fff}
.step-indicator[data-step-status="in_progress"] .step-label{color:#92400e}
.step-indicator.step-accent:not(.active):not([data-step-status="complete"]):not([data-step-status="in_progress"]) .step-label{color:var(--primary)}
.step-indicator.step-accent:not(.active):not([data-step-status="complete"]):not([data-step-status="in_progress"]) .step-number{background:transparent;border:2px solid var(--danger);color:var(--primary)}
.step-indicator.step-accent-text:not(.active):not([data-step-status="complete"]):not([data-step-status="in_progress"]) .step-label{color:var(--primary)}
