/* EZEE FLEX STAFFING - Main Stylesheet */
/* Design: Corporate Light Blue & White, Clean & Professional */

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

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

:root {
  --blue-950: #0A1628;
  --blue-900: #0F2547;
  --blue-800: #1A3A6B;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-300: #93C5FD;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;
  --accent:   #0EA5E9;
  --accent-dark: #0284C7;
  --white:    #FFFFFF;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --success:  #10B981;
  --warning:  #F59E0B;
  --error:    #EF4444;
  --radius:   10px;
  --radius-lg:16px;
  --shadow:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:0 4px 16px rgba(14,37,107,.10);
  --shadow-lg:0 10px 40px rgba(14,37,107,.14);
  --font:     'Inter', system-ui, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

img { max-width: 100%; }

/* ── Typography ────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); color: var(--gray-800); line-height: 1.3; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--blue-600), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-display);
}

.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-900);
  letter-spacing: -.3px;
}
.brand-text .sub {
  font-size: 0.7rem;
  color: var(--gray-500);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.navbar-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.88rem;
  transition: all .18s;
}
.navbar-nav a:hover, .navbar-nav a.active {
  background: var(--blue-50);
  color: var(--blue-600);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: white;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--blue-700), var(--blue-800)); color: white; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,.4); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(14,165,233,.3);
}
.btn-accent:hover { transform: translateY(-1px); color: white; }

.btn-outline {
  background: white;
  color: var(--blue-600);
  border: 1.5px solid var(--blue-300);
}
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-500); }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; transform: translateY(-1px); }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #DC2626; color: white; }

.btn-sm { padding: 6px 13px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-wa { background: #25D366; color: white; }
.btn-wa:hover { background: #1ebe5d; color: white; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

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

/* ── Form Styles ────────────────────────────────────────── */
.form-section {
  margin-bottom: 32px;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-100);
}

.form-section-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-size: 16px;
  flex-shrink: 0;
}

.form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-800);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: .2px;
}
label .req { color: var(--error); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--gray-700);
  background: white;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
input[readonly] { background: var(--gray-50); color: var(--gray-500); cursor: default; }
textarea { resize: vertical; min-height: 80px; }

.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-item, .checkbox-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all .16s;
  background: white;
}
.radio-item:hover, .checkbox-item:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}
.radio-item input, .checkbox-item input { cursor: pointer; accent-color: var(--blue-600); }

.file-upload {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
  position: relative;
  background: var(--gray-50);
}
.file-upload:hover { border-color: var(--blue-400); background: var(--blue-50); }
.file-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload-icon { font-size: 24px; margin-bottom: 6px; }
.file-upload-text { font-size: 0.8rem; color: var(--gray-500); }
.file-upload-hint { font-size: 0.72rem; color: var(--gray-400); margin-top: 3px; }

.form-hint { font-size: 0.77rem; color: var(--gray-400); }
.form-error { font-size: 0.77rem; color: var(--error); }

/* ── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  letter-spacing: .3px;
}

/* ── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
thead th {
  background: var(--blue-900);
  color: var(--blue-100);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background .14s;
}
tbody tr:hover { background: var(--blue-50); }
tbody td { padding: 13px 16px; color: var(--gray-700); vertical-align: middle; }

/* ── Stats Cards ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .18s, box-shadow .18s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--gray-500); font-weight: 500; margin-top: 3px; }

/* ── Alert / Flash ──────────────────────────────────────── */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #ECFDF5; border: 1px solid #6EE7B7; color: #065F46; }
.alert-error   { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }
.alert-info    { background: var(--blue-50); border: 1px solid var(--blue-300); color: var(--blue-800); }
.alert-warning { background: #FFFBEB; border: 1px solid #FCD34D; color: #92400E; }

/* ── Sidebar Layout ─────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: var(--blue-900);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  overflow-y: auto;
  z-index: 50;
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand .name { color: white; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.sidebar-brand .sub { color: var(--blue-300); font-size: 0.68rem; letter-spacing: .5px; text-transform: uppercase; }

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

.nav-label {
  color: var(--blue-400);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 10px 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--blue-200);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all .16s;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: white; }
.sidebar-nav a.active { background: var(--blue-600); color: white; }
.sidebar-nav a .nav-icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.admin-main {
  margin-left: 250px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.admin-content {
  padding: 28px;
  flex: 1;
}

/* ── Filters Bar ────────────────────────────────────────── */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: flex-end;
}
.filters-bar select,
.filters-bar input {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
  width: auto;
  min-width: 160px;
}

/* ── Application Form Page ──────────────────────────────── */
.app-form-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--white) 60%);
}

.form-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--accent) 100%);
  padding: 48px 24px;
  text-align: center;
  color: white;
}
.form-hero h1 { color: white; margin-bottom: 10px; }
.form-hero p { color: var(--blue-200); font-size: 0.95rem; max-width: 600px; margin: 0 auto; }

.form-container {
  max-width: 900px;
  margin: -30px auto 40px;
  padding: 0 20px;
}

.form-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.page-btn {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: white;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.page-btn:hover { border-color: var(--blue-400); color: var(--blue-600); }
.page-btn.active { background: var(--blue-600); border-color: var(--blue-600); color: white; }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modal-body { padding: 24px; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--gray-200); }

/* ── Progress Steps ─────────────────────────────────────── */
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
}
.step {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 120px;
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: all .2s;
}
.step.active .step-circle { background: var(--blue-600); color: white; }
.step.done .step-circle { background: var(--success); color: white; }
.step-line { flex: 1; height: 2px; background: var(--gray-200); }
.step.done .step-line { background: var(--success); }
.step-label { font-size: 0.7rem; font-weight: 600; color: var(--gray-500); white-space: nowrap; margin-left: 8px; }
.step.active .step-label { color: var(--blue-600); }

/* ── Checkbox bulk select ───────────────────────────────── */
.bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--blue-50);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--blue-200);
  display: none;
}
.bulk-actions.visible { display: flex; }

/* ── Thank You Page ─────────────────────────────────────── */
.thankyou-card {
  max-width: 560px;
  margin: 60px auto;
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.thankyou-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--success), #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
}

/* ── Profile Detail ─────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.detail-item label { font-size: 0.75rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; }
.detail-item span { display: block; font-size: 0.9rem; color: var(--gray-800); font-weight: 500; margin-top: 2px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .form-card { padding: 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-content { padding: 16px; }
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
.fade-in { animation: fadeIn .3s ease forwards; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 20px; height: 20px; border: 2px solid #fff3; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
