/* =========================================================================
   Elephant Wash & Dry - Modern Job Application & Manager Portal Stylesheet
   Color Theme: Royal Blue (#1E40AF, #0284C7) + Warm Orange/Gold (#F59E0B, #EA580C)
   Font: Noto Sans Lao + Plus Jakarta Sans
   ========================================================================= */

:root {
  --primary-navy: #0f172a;
  --primary-blue: #1e3a8a;
  --primary-brand: #1e40af;
  --primary-light: #2563eb;
  --accent-cyan: #0284c7;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-orange: #ea580c;
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --brand-gradient: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-muted: #f1f5f9;
  --bg-input: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-color: #cbd5e1;
  --border-focus: #2563eb;
  --border-error: #ef4444;
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --error: #ef4444;
  --error-bg: #fef2f2;
  --info: #0284c7;
  --info-bg: #f0f9ff;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-gold: 0 10px 25px -5px rgba(245, 158, 11, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans Lao', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Discreet Admin Button at Top Right */
.admin-discreet-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100;
}

.btn-discreet-admin {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.65;
}

.btn-discreet-admin:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Decorative Background Header */
.header-bg-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  background: var(--brand-gradient);
  clip-path: ellipse(120% 85% at 50% 15%);
  z-index: 0;
}

.header-bg-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.25) 0%, transparent 40%);
}

/* Container */
.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px 60px 16px;
  position: relative;
  z-index: 1;
}

/* Header Section */
.app-header {
  text-align: center;
  color: var(--text-inverse);
  padding: 10px 12px 24px 12px;
}

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: transparent;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  margin-bottom: 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: var(--transition);
  overflow: hidden;
}

.logo-wrapper:hover {
  transform: translateY(-2px) scale(1.03);
}

.logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.company-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.company-subtitle {
  font-size: 14.5px;
  opacity: 0.92;
  font-weight: 400;
  margin-bottom: 18px;
}

/* Public Navigation Tabs (Only Apply & Track) */
.portal-nav {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  padding: 5px;
  border-radius: var(--radius-full);
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md);
  max-width: 100%;
}

.nav-tab {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-tab.active {
  background: #ffffff;
  color: var(--primary-brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tab Panes */
.tab-pane {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-badge-row {
  text-align: center;
  margin-bottom: 20px;
}

.job-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.job-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 0.9; }
}

/* Main Form Card */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

/* Form Section Blocks */
.form-section {
  padding: 28px;
  border-bottom: 1px solid #f1f5f9;
}

.form-section:last-of-type {
  border-bottom: none;
}

.position-selection-section {
  background: #fbfcfe;
  border-bottom: 2px solid #e2e8f0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--info-bg);
  color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.section-title {
  font-size: 18.5px;
  font-weight: 600;
  color: var(--primary-navy);
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* Position Radio Cards */
.position-card {
  border-width: 2px;
}

.pos-feature-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}

.tag-blue { background: #eff6ff; color: #1e40af; }
.tag-orange { background: #fff7ed; color: #ea580c; }
.tag-green { background: #ecfdf5; color: #15803d; }

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

/* Labels */
.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.required-star {
  color: var(--accent-orange);
  margin-left: 3px;
  font-weight: bold;
}

.label-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Input Fields */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-subtle);
  pointer-events: none;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-main);
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 42px;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-textarea {
  padding-left: 16px;
  resize: vertical;
  min-height: 96px;
}

.input-no-icon {
  padding-left: 16px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
  font-weight: 300;
}

/* Field Error States */
.has-error .form-input,
.has-error .form-select,
.has-error .form-textarea {
  border-color: var(--border-error);
  background-color: #fffbfa;
}

.has-error .form-input:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.error-message {
  display: none;
  font-size: 12.5px;
  color: var(--error);
  margin-top: 6px;
  align-items: center;
  gap: 4px;
}

.has-error .error-message {
  display: flex;
}

/* Radio Card Groups */
.radio-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.radio-cards-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.radio-cards-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.radio-card-label {
  display: block;
  cursor: pointer;
  margin: 0;
}

.radio-card-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card-inner {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.radio-card-label:hover .radio-card-inner {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.radio-card-label input[type="radio"]:checked + .radio-card-inner {
  border-color: var(--primary-brand);
  background-color: #f0f7ff;
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.14);
}

.radio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.radio-card-icon {
  font-size: 24px;
  line-height: 1;
}

.radio-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: #ffffff;
}

.radio-card-label input[type="radio"]:checked + .radio-card-inner .radio-check-circle {
  background: var(--primary-brand);
  border-color: var(--primary-brand);
}

.radio-check-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.radio-card-label input[type="radio"]:checked + .radio-card-inner .radio-check-circle::after {
  opacity: 1;
  transform: scale(1);
}

.radio-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.radio-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.free-tag {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Quick Chips for Start Date */
.quick-date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.date-chip-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.date-chip-btn:hover {
  background: #e2e8f0;
  color: var(--primary-brand);
}

.date-chip-btn.active {
  background: var(--primary-brand);
  color: #ffffff;
  border-color: var(--primary-brand);
}

/* Consent Box */
.consent-box {
  background: var(--info-bg);
  border: 1px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
}

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

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
  background: var(--primary-brand);
  border-color: var(--primary-brand);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox svg {
  display: block;
}

.custom-checkbox svg {
  display: none;
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 3;
}

/* Action Button */
.form-actions {
  padding: 24px 30px 32px 30px;
  background: #fafbfc;
  border-top: 1px solid #f1f5f9;
}

.submit-btn {
  width: 100%;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 15px 28px;
  font-size: 16.5px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(245, 158, 11, 0.45);
}

.submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.is-loading .spinner {
  display: inline-block;
}

.is-loading .btn-icon {
  display: none;
}

/* =========================================================================
   TAB 2: TRACK STATUS STYLES
   ========================================================================= */
.track-card {
  padding: 36px 32px;
}

.track-header {
  text-align: center;
  margin-bottom: 28px;
}

.track-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #eff6ff;
  color: var(--primary-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.track-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.track-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.track-search-box {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 28px auto;
}

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

.track-input {
  padding-left: 44px;
  font-size: 16px;
}

.track-search-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  background: var(--primary-brand);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition);
}

.track-search-btn:hover {
  background: var(--primary-blue);
}

.track-helper-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.track-result-box {
  max-width: 620px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease;
}

.applicant-profile-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
}

.profile-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-navy);
}

.profile-id {
  font-size: 13px;
  color: var(--primary-brand);
  font-weight: 600;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13.5px;
}

.detail-item {
  color: var(--text-muted);
}

.detail-item strong {
  color: var(--primary-navy);
  font-weight: 600;
}

/* Status Stepper / Timeline */
.status-stepper {
  position: relative;
  margin: 32px 0 24px 0;
  padding-left: 28px;
}

.status-stepper::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #e2e8f0;
}

.stepper-step {
  position: relative;
  margin-bottom: 26px;
}

.stepper-step:last-child {
  margin-bottom: 0;
}

.stepper-marker {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  z-index: 1;
  transition: var(--transition);
}

.stepper-step.completed .stepper-marker {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.stepper-step.current .stepper-marker {
  background: var(--primary-brand);
  border-color: #93c5fd;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.2);
}

.stepper-step.rejected .stepper-marker {
  background: var(--error);
  border-color: var(--error);
  color: #ffffff;
}

.stepper-content {
  padding-left: 8px;
}

.stepper-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.stepper-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.status-highlight-card {
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.status-highlight-pending {
  background: var(--warning-bg);
  border-left: 5px solid var(--warning);
}

.status-highlight-interview {
  background: #eff6ff;
  border-left: 5px solid var(--primary-brand);
}

.status-highlight-hired {
  background: var(--success-bg);
  border-left: 5px solid var(--success);
}

.status-highlight-rejected {
  background: var(--error-bg);
  border-left: 5px solid var(--error);
}

/* =========================================================================
   TAB 3: MANAGER PORTAL STYLES
   ========================================================================= */
.manager-login-card {
  max-width: 440px;
  margin: 20px auto;
  padding: 40px 30px;
  text-align: center;
}

.login-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: #eff6ff;
  color: var(--primary-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.login-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pin-input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
  font-weight: 700;
  padding-left: 16px;
}

.manager-dashboard {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 26px;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.dashboard-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-navy);
}

.dashboard-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

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

.refresh-btn, .logout-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  white-space: nowrap;
}

.refresh-btn:hover {
  background: #f8fafc;
  color: var(--primary-brand);
}

.logout-btn:hover {
  background: #fef2f2;
  color: var(--error);
  border-color: #fca5a5;
}

/* Metric KPI Cards */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.metric-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-total .metric-value { color: var(--primary-brand); }
.metric-pending .metric-value { color: #d97706; }
.metric-interview .metric-value { color: #2563eb; }
.metric-hired .metric-value { color: #10b981; }
.metric-rejected .metric-value { color: #ef4444; }

/* Position Filter Pills for Admin */
.pos-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pos-pill {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.pos-pill:hover {
  background: #f1f5f9;
  color: var(--primary-brand);
}

.pos-pill.active {
  background: var(--primary-brand);
  color: #ffffff;
  border-color: var(--primary-brand);
  box-shadow: var(--shadow-sm);
}

/* Status Filter & Search Controls */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 12px;
  color: var(--text-subtle);
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--border-focus);
}

.filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-pill:hover {
  background: #f1f5f9;
}

.filter-pill.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

/* Candidate List Cards */
.candidates-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.candidate-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: var(--transition);
}

.candidate-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.candidate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.candidate-name-area {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.candidate-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-navy);
}

.candidate-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.candidate-pos-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  background: #eff6ff;
  color: #1e40af;
  margin-right: 4px;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
}

.status-badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge-interview {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge-hired {
  background: #d1fae5;
  color: #065f46;
}

.status-badge-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.candidate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.c-tag {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.candidate-interview-info {
  background: #eff6ff;
  border-left: 3px solid var(--primary-brand);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: #1e3a8a;
  margin-bottom: 14px;
}

.candidate-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid #f8fafc;
  padding-top: 12px;
}

.btn-action {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-action-call {
  background: #f1f5f9;
  color: var(--text-main);
  border-color: #cbd5e1;
}

.btn-action-call:hover {
  background: #e2e8f0;
}

.btn-action-wa {
  background: #25d366;
  color: #ffffff;
}

.btn-action-wa:hover {
  background: #20ba5a;
}

.btn-action-manage {
  background: var(--primary-brand);
  color: #ffffff;
}

.btn-action-manage:hover {
  background: var(--primary-blue);
}

.btn-action-doc {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.btn-action-doc:hover {
  background: #dcfce7;
  color: #14532d;
}

.btn-action-delete {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
}

.btn-action-delete:hover {
  background: #ffe4e6;
  color: #be123c;
  border-color: #fda4af;
}

/* Modal Candidate Mini Summary */
.candidate-mini-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
}

/* Modal Common */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-icon-success {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 4px solid #a7f3d0;
}

.modal-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.modal-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed #e2e8f0;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--text-muted);
}

.summary-value {
  font-weight: 600;
  color: var(--primary-navy);
}

.modal-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: var(--primary-brand);
  color: #ffffff;
  transition: var(--transition);
}

.modal-btn:hover {
  background: var(--primary-blue);
}

/* Toast */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: calc(100% - 40px);
}

.toast {
  background: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--primary-brand);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast-error {
  border-left-color: var(--error);
}

.toast-success {
  border-left-color: var(--success);
}

/* Footer */
.app-footer {
  text-align: center;
  margin-top: 32px;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-brand);
  text-decoration: none;
  font-weight: 500;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-subtle);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 12px 10px 48px 10px;
  }
  
  .company-title {
    font-size: 22px;
  }

  .nav-tab {
    padding: 7px 14px;
    font-size: 13px;
  }

  .form-section {
    padding: 20px 16px;
  }

  .form-actions {
    padding: 18px 16px 26px 16px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-total {
    grid-column: span 2;
  }

  .dashboard-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .dashboard-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .dashboard-actions .refresh-btn,
  .dashboard-actions .logout-btn {
    flex: 1 1 auto;
    min-width: 65px;
    padding: 8px 6px;
    font-size: 11.5px;
    justify-content: center;
    white-space: nowrap;
    gap: 4px;
  }

  .dashboard-actions .refresh-btn svg,
  .dashboard-actions .logout-btn svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
  }

  .track-search-box {
    flex-direction: column;
  }

  .track-search-btn {
    padding: 12px;
    justify-content: center;
  }

  .candidate-header {
    flex-direction: column;
  }

  .candidate-actions {
    justify-content: stretch;
  }

  .candidate-actions .btn-action {
    flex: 1;
    justify-content: center;
  }
}

/* =========================================================================
   FILE UPLOAD DROPZONE STYLES
   ========================================================================= */
.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  background: #f8fafc;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary-brand);
  background: #eff6ff;
}

.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-prompt-text {
  font-size: 14.5px;
  color: var(--text-main);
}

.upload-prompt-hint {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.4;
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  text-align: left;
}

.preview-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.preview-info {
  flex: 1;
  overflow: hidden;
}

.preview-filename {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-filesize {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-remove-file {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-remove-file:hover {
  background: #fca5a5;
  color: #b91c1c;
}

/* =========================================================================
   JOB OPENINGS & QUOTA SETTINGS STYLES
   ========================================================================= */

/* Quota badge inside position cards */
.pos-quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-top: 8px;
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.08);
}

.pos-quota-badge.closed {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* Toggle Switch */
.switch-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: #cbd5e1;
  border-radius: 24px;
  transition: var(--transition);
}

.switch-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch-input:checked + .switch-slider {
  background-color: #10b981;
}

.switch-input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.switch-label-text {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.switch-input:checked ~ .switch-label-text {
  color: #065f46;
}

/* Settings Modal Position Cards */
.settings-pos-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.settings-pos-card.is-closed {
  background: #f1f5f9;
  border-color: #cbd5e1;
  opacity: 0.8;
}

.settings-pos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.settings-pos-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.quota-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.quota-number-input {
  width: 75px;
  padding: 5px 8px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  outline: none;
  background: #ffffff;
}

.quota-number-input:focus {
  border-color: var(--primary-brand);
}

/* Openings Summary Strip in Admin Dashboard */
.openings-summary-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.openings-strip-items {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}

.openings-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
}

.openings-pill.open {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.openings-pill.closed {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.btn-openings-settings {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--primary-navy);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-openings-settings:hover {
  background: #f1f5f9;
  border-color: var(--primary-brand);
  color: var(--primary-brand);
}

/* All Positions Closed Alert Banner */
.all-closed-banner {
  background: #fff1f2;
  border: 1.5px dashed #f43f5e;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  color: #881337;
  margin-bottom: 20px;
}

/* Floating Quick WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.floating-whatsapp-tooltip {
  position: absolute;
  right: 64px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.floating-whatsapp-btn:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  .floating-whatsapp-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* Admin Session Pill */
.admin-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

/* Settings Tabs */
.settings-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

.settings-tab-btn {
  background: none;
  border: none;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.settings-tab-btn.active {
  color: var(--primary-brand);
  border-bottom-color: var(--primary-brand);
  font-weight: 700;
}

.admin-user-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.admin-user-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--primary-navy);
}

.admin-role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.admin-role-badge.super {
  background: #fef3c7;
  color: #92400e;
}

.admin-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-status-badge.active {
  color: #059669;
  background: #ecfdf5;
}

.admin-status-badge.inactive {
  color: #dc2626;
  background: #fee2e2;
}
