/* ==========================================================================
   Sandesh Office — Recruitment & Job Application System
   Design System & Master Stylesheet
   ========================================================================== */

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

:root {
  /* Color Palette */
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-primary-light: #eff6ff;
  --brand-secondary: #0f172a;
  --brand-accent: #3b82f6;

  --success: #10b981;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;

  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;

  --info: #0284c7;
  --info-light: #f0f9ff;

  /* Surfaces & Backgrounds */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;

  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-nav {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-xs);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--brand-secondary);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-secondary);
}

.brand-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-primary);
  background-color: var(--bg-subtle);
  text-decoration: none;
}

.nav-link-admin {
  background-color: var(--brand-secondary);
  color: #fff !important;
  box-shadow: var(--shadow-xs);
}

.nav-link-admin:hover {
  background-color: #1e293b !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-primary-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-secondary);
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.7;
}

/* ==========================================================================
   Main Form Layout
   ========================================================================== */
.main-wrapper {
  max-width: 900px;
  margin: -1.5rem auto 4rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
  flex: 1;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.75rem 2.5rem;
  position: relative;
}

.form-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.form-header-bar h2 {
  font-size: 1.4rem;
  color: var(--brand-secondary);
}

.required-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.required-notice span {
  color: var(--danger);
  font-weight: 700;
}

/* Fieldset / Card Sections */
.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-number {
  width: 28px;
  height: 28px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-secondary);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.col-span-full {
  grid-column: 1 / -1;
}

/* Form Groups & Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.req-star {
  color: var(--danger);
  font-weight: bold;
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background-color: #fff;
}

.form-control::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
}

.form-textarea {
  resize: vertical;
  min-height: 105px;
}

.form-help {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Phone OTP Verification Component
   ========================================================================== */
.otp-container {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.otp-container.verified {
  background: var(--success-light);
  border-color: var(--success-border);
}

.otp-phone-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.otp-input-wrap {
  flex: 1;
}

.btn-send-otp {
  white-space: nowrap;
  padding: 0.75rem 1.25rem;
  height: 48px;
  background: var(--brand-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-send-otp:hover:not(:disabled) {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-send-otp:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* OTP Code Input Box */
.otp-verification-box {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-color);
  display: none;
}

.otp-verification-box.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.otp-code-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.otp-code-input {
  max-width: 220px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  text-align: center;
  font-weight: 700;
}

.btn-verify-otp {
  padding: 0.75rem 1.4rem;
  height: 48px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-verify-otp:hover:not(:disabled) {
  background: var(--brand-primary-hover);
}

.otp-status-badge {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--success);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  margin-top: 0.75rem;
  width: fit-content;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.otp-status-badge.active {
  display: inline-flex;
}

.otp-resend-timer {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Salary Component
   ========================================================================== */
.salary-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.salary-input {
  padding-left: 3.5rem !important;
  font-size: 1.05rem;
  font-weight: 600;
}

.salary-preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Skills Tag Selector
   ========================================================================== */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.skill-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.skill-chip.selected {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* ==========================================================================
   Legal Consent Checkboxes
   ========================================================================== */
.consent-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1.5;
  user-select: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ==========================================================================
   Submit Buttons & Actions
   ========================================================================== */
.btn-submit-app {
  width: 100%;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-submit-app:hover:not(:disabled) {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-submit-app:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Success Screen Layout
   ========================================================================== */
.success-card {
  max-width: 680px;
  margin: 3rem auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  background: var(--success-light);
  border: 2px solid var(--success-border);
  color: var(--success);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-title {
  font-size: 2rem;
  color: var(--brand-secondary);
  margin-bottom: 0.75rem;
}

.success-message {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.app-id-badge-container {
  background: var(--brand-primary-light);
  border: 1.5px dashed rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.25rem;
}

.app-id-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.app-id-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-secondary);
  letter-spacing: 0.05em;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: #e2e8f0;
  text-decoration: none;
}

/* ==========================================================================
   Privacy Policy Page
   ========================================================================== */
.policy-container {
  max-width: 850px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.policy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.policy-card h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--brand-secondary);
}

.policy-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.3rem;
  color: var(--brand-secondary);
  margin-bottom: 0.75rem;
}

.policy-section p, .policy-section li {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.75;
}

.policy-section ul {
  padding-left: 1.4rem;
  margin-top: 0.5rem;
}

.policy-notice {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: #78350f;
}

/* ==========================================================================
   Admin Recruitment Suite
   ========================================================================== */
.admin-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: #0f172a;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #1e293b;
}

.admin-header-inner {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-header-title span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  padding-left: 0.5rem;
  border-left: 1px solid #334155;
}

.admin-user-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-badge-name {
  font-size: 0.875rem;
  color: #cbd5e1;
  font-weight: 600;
}

.btn-admin-logout {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-admin-logout:hover {
  background: var(--danger);
  color: #fff;
  text-decoration: none;
}

/* Admin Dashboard Main Content */
.admin-container {
  max-width: 1250px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
}

/* Metric Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-secondary);
}

/* Metric Colors */
.metric-card.total { border-top: 4px solid var(--brand-primary); }
.metric-card.pending { border-top: 4px solid #64748b; }
.metric-card.reviewing { border-top: 4px solid #0284c7; }
.metric-card.shortlisted { border-top: 4px solid var(--warning); }
.metric-card.selected { border-top: 4px solid var(--success); }
.metric-card.rejected { border-top: 4px solid var(--danger); }

/* Filters & Search Toolbar */
.admin-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.admin-search-form {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  min-width: 280px;
}

.admin-filter-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Applications Table */
.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.data-table th {
  background: #f8fafc;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: #f8fafc;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: capitalize;
}

.status-Pending {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.status-Reviewing {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.status-Shortlisted {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-Selected {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-Rejected {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.verified-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--success);
  font-weight: 600;
  font-size: 0.78rem;
}

/* Admin Detail Dossier */
.dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.75rem;
}

.dossier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.info-item {
  margin-bottom: 1.25rem;
}

.info-label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.info-val {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
}

.info-statement {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.4rem;
  line-height: 1.7;
  white-space: pre-wrap;
  font-size: 0.95rem;
}

/* Admin Action Controls */
.action-buttons-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-action-status {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-status-review {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}
.btn-status-review:hover { background: #bae6fd; }

.btn-status-shortlist {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}
.btn-status-shortlist:hover { background: #fde68a; }

.btn-status-select {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}
.btn-status-select:hover { background: #bbf7d0; }

.btn-status-reject {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}
.btn-status-reject:hover { background: #fecaca; }

/* Admin Notes Area */
.admin-notes-card {
  background: #fffdf5;
  border: 1px solid #fef08a;
}

.admin-notes-textarea {
  width: 100%;
  min-height: 140px;
  background: #ffffff;
  border: 1px solid #fde047;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #334155;
}

/* ==========================================================================
   Admin Login Page
   ========================================================================== */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
}

.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-toggle-pw {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.btn-toggle-pw:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Toast Notifications & Modals
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease-out;
}

.toast-success {
  background: #065f46;
  color: #ecfdf5;
}

.toast-error {
  background: #991b1b;
  color: #fef2f2;
}

.toast-info {
  background: #075985;
  color: #f0f9ff;
}

.toast-close {
  background: none;
  border: none;
  color: currentColor;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
}

.toast-close:hover {
  opacity: 1;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--brand-secondary);
  font-size: 1.1rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 860px) {
  .form-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .otp-phone-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-send-otp {
    width: 100%;
  }

  .dossier-grid {
    grid-template-columns: 1fr;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .hero-section {
    padding: 2.5rem 1rem 2rem;
  }

  .action-buttons-group {
    grid-template-columns: 1fr;
  }
}
