/* =========================================
   eDrushti BGV App — Core Stylesheet
   Font: Inter (clean, professional, standard)
   Theme: Navy Blue / Slate — Corporate Excellence
   ========================================= */

:root {
  --navy: #0f2444;
  --navy-mid: #1a3c6e;
  --navy-light: #2255a4;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --teal: #14b8a6;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --surface: #f8fafc;
  --surface2: #f1f5f9;
  --border: #e2e8f0;
  --border-mid: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(15,36,68,0.08), 0 1px 4px rgba(15,36,68,0.04);
  --shadow-lg: 0 12px 40px rgba(15,36,68,0.12), 0 4px 12px rgba(15,36,68,0.06);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: linear-gradient(180deg, var(--navy) 0%, #0d1f3c 100%);
  z-index: 200; transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,.18);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 20px 20px;
}
.brand-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14,165,233,.4);
}
.brand-name { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; color: white; display: block; line-height: 1.1; }
.brand-sub { font-size: 10px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .08em; display: block; }

.sidebar-divider { height: 1px; background: rgba(255,255,255,.08); margin: 0 20px 12px; }

.sidebar-nav { padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.65); text-decoration: none;
  font-size: 13.5px; font-weight: 500; transition: all .2s;
}
.sidebar-nav .nav-link i { font-size: 17px; flex-shrink: 0; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.08); color: white; }
.sidebar-nav .nav-link.active { background: linear-gradient(90deg, rgba(14,165,233,.2), rgba(14,165,233,.05)); color: var(--accent); font-weight: 600; border-left: 3px solid var(--accent); }

.sidebar-footer { padding: 16px 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.user-card { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--navy-light)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.user-name { font-size: 13px; font-weight: 600; color: white; display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-size: 11px; color: rgba(255,255,255,.45); display: block; }
.btn-logout { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.6); padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 16px; transition: all .2s; width: 100%; margin-top: 4px; }
.btn-logout:hover { background: rgba(239,68,68,.15); color: #ef4444; border-color: rgba(239,68,68,.3); }

/* ===== TOPBAR ===== */
.main-content { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin .3s; }
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h); background: white;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px;
  box-shadow: var(--shadow-sm);
}
.sidebar-toggle { background: none; border: none; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--text-secondary); font-size: 22px; display: none; }
.topbar-title { font-weight: 700; font-size: 16px; color: var(--navy); flex: 1; }
.badge-role { display: flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.role-admin { background: rgba(14,165,233,.1); color: var(--navy-light); }
.role-candidate { background: rgba(16,185,129,.1); color: #059669; }
.page-content { padding: 28px; flex: 1; }

/* ===== STATS CARDS ===== */
.stat-card { border-radius: var(--radius-lg); padding: 24px; display: flex; align-items: center; gap: 20px; transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-blue { background: linear-gradient(135deg, #1a3c6e, #2255a4); color: white; }
.stat-green { background: linear-gradient(135deg, #059669, #10b981); color: white; }
.stat-orange { background: linear-gradient(135deg, #d97706, #f59e0b); color: white; }
.stat-icon { font-size: 36px; opacity: .85; }
.stat-number { font-family: 'Inter', sans-serif; font-size: 34px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 13px; opacity: .8; margin-top: 4px; font-weight: 500; }

/* ===== PANELS ===== */
.panel { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 12px; flex-wrap: wrap; }
.panel-title { font-size: 15px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; margin: 0; }
.panel-title i { color: var(--accent); }
.panel-subtitle { font-size: 12.5px; color: var(--text-muted); margin: 4px 0 0; }
.panel-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.panel-search-row { padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
.search-box { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; max-width: 320px; }
.search-box i { color: var(--text-muted); }
.search-input { border: none; outline: none; font-size: 13.5px; width: 100%; font-family: inherit; }

/* ===== TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th { padding: 12px 16px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); background: var(--surface); border-bottom: 2px solid var(--border); white-space: nowrap; }
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.data-table tbody tr:hover { background: var(--surface); }
.data-table td { padding: 14px 16px; vertical-align: middle; }
.row-num { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.candidate-cell { display: flex; align-items: center; gap: 12px; }
.candidate-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-light), var(--accent)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.candidate-name { font-weight: 600; color: var(--text-primary); font-size: 13.5px; }
.candidate-email { font-size: 12px; color: var(--text-muted); }
.emp-id-badge { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 600; color: var(--navy-mid); font-family: monospace; }
.date-cell { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 15px; }
.empty-state i { font-size: 40px; display: block; margin-bottom: 12px; }

/* ===== STATUS PILLS ===== */
.status-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.status-inprogress { background: #fef3c7; color: #92400e; }
.status-submitted { background: #dbeafe; color: #1e40af; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-review { background: #ede9fe; color: #5b21b6; }
.status-pill-lg { display: inline-flex; align-items: center; padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: 700; }

/* ===== TOGGLE ===== */
.toggle-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.toggle-active { background: #d1fae5; color: #065f46; }
.toggle-inactive { background: #fee2e2; color: #991b1b; }

/* ===== ACTION BTNS ===== */
.action-btns { display: flex; gap: 6px; }
.action-btn { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; font-size: 14px; transition: all .2s; text-decoration: none; }
.btn-view { background: rgba(14,165,233,.1); color: var(--accent); }
.btn-view:hover { background: var(--accent); color: white; }
.btn-edit { background: rgba(245,158,11,.1); color: #d97706; }
.btn-edit:hover { background: #f59e0b; color: white; }
.btn-delete { background: rgba(239,68,68,.1); color: #dc2626; }
.btn-delete:hover { background: #ef4444; color: white; }

.btn-primary-action { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; background: linear-gradient(135deg, var(--navy-mid), var(--navy-light)); color: white; border: none; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-primary-action:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,60,110,.35); color: white; }
.btn-outline-action { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; background: white; color: var(--navy); border: 1.5px solid var(--border-mid); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-outline-action:hover { border-color: var(--accent); color: var(--accent); }

/* ===== FORM PANELS ===== */
.form-panel { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 32px; box-shadow: var(--shadow); max-width: 900px; }
.form-panel-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.form-panel-title { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 500; transition: color .2s; }
.back-link:hover { color: var(--accent); }

/* ===== FIELD GROUPS ===== */
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.field-label.required::after { content: ' *'; color: var(--red); }
.field-label.optional .opt-badge { font-size: 10px; font-weight: 600; padding: 1px 7px; background: var(--surface2); color: var(--text-muted); border-radius: 10px; margin-left: 6px; }
.opt-badge { font-size: 10px; font-weight: 600; padding: 1px 7px; background: var(--surface2); color: var(--text-muted); border-radius: 10px; margin-left: 6px; }
.field-input {
  width: 100%; padding: 10px 14px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.field-input:focus { border-color: var(--accent); background: white; box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.field-select { width: 100%; padding: 10px 14px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--text-primary); outline: none; cursor: pointer; }
.field-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.field-error { font-size: 12px; color: var(--red); margin-top: 2px; }

/* ===== FORM ACTIONS ===== */
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn-cancel { padding: 10px 22px; background: var(--surface2); border: 1.5px solid var(--border); color: var(--text-secondary); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-cancel:hover { border-color: var(--border-mid); color: var(--text-primary); }
.btn-submit { padding: 10px 24px; background: linear-gradient(135deg, var(--navy-mid), var(--navy-light)); color: white; border: none; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,60,110,.35); }

/* ===== TOGGLE SWITCH ===== */
.toggle-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle-switch input { display: none; }
.toggle-slider { width: 44px; height: 24px; background: var(--border-mid); border-radius: 12px; position: relative; transition: background .2s; flex-shrink: 0; }
.toggle-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.toggle-switch input:checked ~ .toggle-slider { background: var(--green); }
.toggle-switch input:checked ~ .toggle-slider::after { transform: translateX(20px); }
.toggle-text { font-size: 13.5px; font-weight: 500; color: var(--text-primary); }

/* ===== BGV FORM SECTIONS ===== */
.form-section { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.form-section:hover { box-shadow: var(--shadow); }
.section-header { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: linear-gradient(90deg, var(--surface) 0%, white 100%); border-bottom: 1px solid var(--border); }
.section-num { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-mid), var(--navy-light)); color: white; display: flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 700; flex-shrink: 0; }
.section-title { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0; }
.section-desc { font-size: 12.5px; color: var(--text-muted); margin: 3px 0 0; }
.section-badge { margin-left: auto; }
.section-body { padding: 24px; }

/* ===== FILE UPLOAD ZONES ===== */
.upload-zone {
  border: 2px dashed var(--border-mid); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all .2s; position: relative;
  background: var(--surface); min-height: 90px;
  display: flex; align-items: center;
}
.upload-zone:hover { border-color: var(--accent); background: rgba(14,165,233,.03); }
.upload-zone.has-file { border-style: solid; border-color: var(--green); background: rgba(16,185,129,.04); }
.upload-zone.drag-over { border-color: var(--accent); background: rgba(14,165,233,.06); transform: scale(1.01); }
.upload-input { display: none; }
.upload-placeholder { display: flex; align-items: center; gap: 16px; width: 100%; }
.upload-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(14,165,233,.1); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 22px; flex-shrink: 0; }
.upload-main { display: block; font-weight: 600; font-size: 13.5px; color: var(--navy); }
.upload-hint { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.upload-preview { display: flex; align-items: center; gap: 14px; width: 100%; }
.file-icon-area { width: 44px; height: 44px; border-radius: 10px; background: rgba(16,185,129,.1); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 22px; flex-shrink: 0; }
.file-name { display: block; font-weight: 600; font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.file-status { display: block; font-size: 11.5px; color: var(--green); font-weight: 600; }
.file-info { flex: 1; overflow: hidden; }
.file-actions-mini { display: flex; gap: 6px; margin-left: auto; }
.mini-btn { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--surface2); border: 1px solid var(--border); color: var(--text-secondary); font-size: 14px; cursor: pointer; text-decoration: none; transition: all .2s; }
.mini-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* ===== PROGRESS BAR ===== */
.bgv-progress-bar { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); }
.progress-label { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.progress-track { flex: 1; height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--teal)); border-radius: 4px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.progress-pct { font-size: 13px; font-weight: 700; color: var(--accent); min-width: 36px; text-align: right; }

/* ===== STICKY FORM ACTIONS ===== */
.form-actions-sticky { position: sticky; bottom: 0; z-index: 50; background: white; border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,.06); }
.form-actions-inner { max-width: 1200px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.save-hint { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.action-btn-group { display: flex; gap: 12px; }
.btn-save-progress { padding: 11px 22px; background: var(--surface2); border: 1.5px solid var(--border-mid); color: var(--navy); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; }
.btn-save-progress:hover { border-color: var(--accent); color: var(--accent); }
.btn-final-submit { padding: 11px 26px; background: linear-gradient(135deg, #059669, #10b981); color: white; border: none; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; box-shadow: 0 4px 12px rgba(16,185,129,.35); }
.btn-final-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,.45); }

/* ===== TEMPLATE DOWNLOAD ===== */
.template-download-row { display: flex; gap: 16px; flex-wrap: wrap; }
.template-dl-card { flex: 1; min-width: 240px; background: linear-gradient(135deg, var(--surface), white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.template-dl-card > i { font-size: 28px; color: var(--accent); flex-shrink: 0; }
.template-dl-card > div { flex: 1; }
.template-dl-card strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); }
.template-dl-card span { display: block; font-size: 12px; color: var(--text-muted); }
.btn-dl-template { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: var(--navy); color: white; border-radius: 8px; font-size: 12.5px; font-weight: 600; text-decoration: none; transition: all .2s; white-space: nowrap; }
.btn-dl-template:hover { background: var(--navy-light); color: white; }

/* ===== SUBMITTED BANNER ===== */
.submitted-banner { background: linear-gradient(135deg, #d1fae5, #a7f3d0); border: 1.5px solid #6ee7b7; border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.submitted-banner > i { font-size: 28px; color: #059669; flex-shrink: 0; }
.submitted-banner strong { display: block; font-weight: 700; color: #065f46; }
.submitted-banner span { font-size: 12.5px; color: #047857; display: block; }

/* ===== CANDIDATE PROFILE ===== */
.candidate-profile-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; align-items: flex-start; gap: 20px; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.profile-avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-mid), var(--accent)); display: flex; align-items: center; justify-content: center; color: white; font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 700; flex-shrink: 0; }
.profile-info { flex: 1; }
.profile-info h3 { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-meta span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.profile-meta i { color: var(--accent); }
.profile-status { text-align: right; }
.submitted-date { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ===== DOC GRID ===== */
.doc-grid { display: flex; flex-direction: column; gap: 0; }
.doc-row { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); gap: 16px; }
.doc-row:last-child { border-bottom: none; }
.doc-label { display: flex; align-items: center; gap: 8px; min-width: 260px; font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.doc-label i { color: var(--accent); font-size: 16px; }
.doc-value { flex: 1; }
.no-file { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; }
.file-link-group { display: flex; gap: 8px; }
.file-view-btn, .file-dl-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; text-decoration: none; transition: all .2s; }
.file-view-btn { background: rgba(14,165,233,.1); color: var(--accent); }
.file-view-btn:hover { background: var(--accent); color: white; }
.file-dl-btn { background: rgba(15,36,68,.07); color: var(--navy); }
.file-dl-btn:hover { background: var(--navy); color: white; }
.text-val { font-size: 13.5px; color: var(--text-primary); font-weight: 500; }
.empty-submission { text-align: center; padding: 80px; background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.empty-submission i { font-size: 48px; color: var(--text-muted); display: block; margin-bottom: 12px; }

/* ===== TOAST ALERTS ===== */
.alert-toast { position: fixed; top: 80px; right: 24px; z-index: 9999; padding: 14px 20px; border-radius: var(--radius); display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); animation: slideInRight .3s ease; max-width: 380px; }
.alert-success-toast { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error-toast { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
@keyframes slideInRight { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.alert-box { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 13.5px; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ===== MODAL ===== */
.custom-modal { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-lg); }

/* ===== LOGIN PAGE ===== */
.login-body { min-height: 100vh; display: flex; background: var(--navy); overflow: hidden; }
.login-bg { position: fixed; inset: 0; pointer-events: none; }
.login-bg-shape { position: absolute; border-radius: 50%; opacity: .06; }
.shape1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -200px; }
.shape2 { width: 400px; height: 400px; background: var(--teal); bottom: -100px; right: 300px; }
.shape3 { width: 300px; height: 300px; background: white; top: 40%; right: -100px; }

.login-wrapper { display: flex; width: 100%; min-height: 100vh; position: relative; z-index: 1; }
.login-left { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px; background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }
.login-brand-area { max-width: 400px; }
.login-logo-icon { font-size: 56px; color: var(--accent); margin-bottom: 24px; filter: drop-shadow(0 0 20px rgba(14,165,233,.4)); }
.login-company { font-family: 'Inter', sans-serif; font-size: 32px; font-weight: 700; color: white; margin-bottom: 8px; }
.login-tagline { font-size: 16px; color: rgba(255,255,255,.5); margin-bottom: 40px; font-weight: 400; }
.login-features { display: flex; flex-direction: column; gap: 14px; }
.feature-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.7); font-size: 14px; }
.feature-item i { color: var(--accent); font-size: 18px; }

.login-right { width: 480px; background: white; display: flex; align-items: center; justify-content: center; padding: 40px; min-height: 100vh; }
.login-card { width: 100%; max-width: 380px; }
.login-card-header { text-align: center; margin-bottom: 36px; }
.login-logo-sm { font-size: 40px; color: var(--navy); margin-bottom: 16px; }
.login-title { font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.login-subtitle { color: var(--text-muted); font-size: 14px; }

.form-floating-custom { display: flex; flex-direction: column; gap: 6px; }
.form-floating-custom label { font-size: 12.5px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 7px; }
.form-floating-custom label i { color: var(--accent); }
.form-input { width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-primary); outline: none; transition: all .2s; background: var(--surface); }
.form-input:focus { border-color: var(--accent); background: white; box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.input-with-toggle { position: relative; }
.input-with-toggle .form-input { padding-right: 48px; }
.pwd-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; padding: 4px; }
.pwd-toggle:hover { color: var(--accent); }

.custom-check { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.custom-check input { display: none; }
.checkmark { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-mid); background: var(--surface); flex-shrink: 0; transition: all .15s; display: flex; align-items: center; justify-content: center; }
.custom-check input:checked ~ .checkmark { background: var(--accent); border-color: var(--accent); }
.custom-check input:checked ~ .checkmark::after { content: '✓'; color: white; font-size: 11px; font-weight: 700; }
.check-label { font-size: 13.5px; color: var(--text-secondary); }

.btn-login { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%); color: white; border: none; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; transition: all .25s; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,60,110,.4); }
.btn-login i { font-size: 20px; }

.hint-text { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 7px; }

/* ===== PAGE ANIMATION ===== */
.page-fade-in { animation: fadeInUp .4s ease both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .login-right { width: 100%; }
  .doc-label { min-width: 180px; }
}
@media (max-width: 768px) {
  .page-content { padding: 16px; }
  .form-actions-inner { flex-direction: column; align-items: stretch; }
  .action-btn-group { flex-direction: column; }
  .btn-save-progress, .btn-final-submit { justify-content: center; }
  .template-download-row { flex-direction: column; }
  .doc-row { flex-direction: column; align-items: flex-start; }
  .doc-label { min-width: 0; }
  .profile-meta { flex-direction: column; }
  .candidate-profile-card { flex-direction: column; }
  .form-panel { padding: 20px; }
}
