/* ==========================================================================
   EKITI SUBEB RECRUITMENT PORTAL & ADMIN BACKEND - STYLESHEET
   Theme: Official Ekiti SUBEB Emerald Green & Warm Gold Accent
   ========================================================================== */

:root {
  --primary-color: #0B6623;
  --primary-dark: #074718;
  --primary-light: #15803D;
  --primary-subtle: #DCFCE7;
  
  --gold-color: #D4AF37;
  --gold-light: #FEF9C3;
  --gold-dark: #A18218;

  --bg-color: #F8FAF9;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --border-focus: #15803D;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --danger-color: #DC2626;
  --danger-bg: #FEF2F2;
  --success-color: #16A34A;
  --success-bg: #F0FDF4;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(11, 102, 35, 0.12);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Helper Utilities */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }
.mb-3 { margin-bottom: 14px; }

/* Navigation Bar */
.navbar {
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 12px 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

/* Hero Header Banner */
.hero-banner {
  background: linear-gradient(135deg, #074718 0%, #0B6623 50%, #15803D 100%);
  color: #FFFFFF;
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold-color);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.coat-of-arms {
  margin-bottom: 12px;
}

.hero-logo-img {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  border: 3px solid var(--gold-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.05);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #E2E8F0;
  font-weight: 500;
  margin-bottom: 16px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Main Container & Layout */
.main-container {
  max-width: 900px;
  width: 100%;
  margin: -24px auto 48px auto;
  padding: 0 16px;
  position: relative;
  z-index: 10;
  flex: 1;
}

/* Progress Card */
.progress-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-percentage {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.draft-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-bar-container {
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-color), var(--primary-color));
  transition: width 0.4s ease;
}

.section-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.section-nav.two-steps {
  grid-template-columns: repeat(2, 1fr);
}

.sec-nav-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.sec-nav-btn .step-num {
  width: 20px;
  height: 20px;
  background: var(--text-light);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.sec-nav-btn:hover {
  background: #E2E8F0;
}

.sec-nav-btn.active {
  background: var(--primary-dark);
  color: #FFFFFF;
  border-color: var(--primary-dark);
}

.sec-nav-btn.active .step-num {
  background: var(--gold-color);
  color: var(--primary-dark);
  font-weight: 700;
}

/* Form Sections */
.form-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.3s ease-in-out;
}

.form-section.hidden {
  display: none;
}

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

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid #F1F5F9;
}

.section-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Form Controls & Fields */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.full-width {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.optional-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.form-hint-inline {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: -4px;
  margin-bottom: 8px;
}

/* Dynamic Post Secondary Cards */
.post-sec-section {
  border-top: 2px solid #F1F5F9;
  padding-top: 24px;
}

.post-sec-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.post-sec-header-title i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.post-sec-header-title h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.post-sec-card {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  transition: var(--transition-fast);
}

.post-sec-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}

.post-sec-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.btn-remove-entry {
  background: var(--danger-bg);
  color: var(--danger-color);
  border: 1px solid #FECACA;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-remove-entry:hover {
  background: var(--danger-color);
  color: #FFFFFF;
}

.btn-add-more {
  width: 100%;
  justify-content: center;
  padding: 12px;
  border: 1.5px dashed var(--primary-color);
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-add-more:hover {
  background: #BBF7D0;
  border-color: var(--primary-dark);
}

/* Passport Photo Upload Styling */
.photo-upload-container {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F8FAFC;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 4px;
}

.photo-preview-box {
  width: 90px;
  height: 110px;
  background: #E2E8F0;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.photo-placeholder-icon {
  font-size: 2.5rem;
  color: #94A3B8;
}

.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-img.hidden {
  display: none;
}

.photo-placeholder-icon.hidden {
  display: none;
}

.upload-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-input-hidden {
  display: none;
}

.btn-upload {
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 8px 16px;
  cursor: pointer;
}

.file-name-display {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.upload-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.input-icon.textarea-icon {
  top: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text-main);
  background-color: #FAFBFD;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

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

.form-control:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary-color);
}

.required-group .form-control {
  background-color: #FFFFFF;
}

.field-error {
  font-size: 0.78rem;
  color: var(--danger-color);
  margin-top: 4px;
  display: none;
  font-weight: 500;
}

.has-error .form-control,
.has-error .photo-upload-container {
  border-color: var(--danger-color) !important;
  background-color: var(--danger-bg);
}

.has-error .field-error {
  display: block;
}

/* Custom Checkbox Declaration Box */
.declaration-box {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 10px;
}

.declaration-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.declaration-header i {
  font-size: 1.2rem;
  color: var(--gold-color);
}

.declaration-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.declaration-text {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  background-color: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition-fast);
  position: relative;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Action Buttons */
.section-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(11, 102, 35, 0.25);
}

.btn-secondary {
  background-color: #F1F5F9;
  color: #475569;
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: #E2E8F0;
  color: var(--text-main);
}

.btn-success {
  background: linear-gradient(135deg, #15803D, #074718);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #0E622C, #043110);
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.btn-ghost {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold-color);
}

.btn-ghost:hover {
  background: var(--gold-color);
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-danger {
  background-color: var(--danger-color);
  color: #FFFFFF;
}

.btn-danger:hover {
  background-color: #B91C1C;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: fadeIn 0.25s ease;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-card.wide-modal {
  max-width: 800px;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-header.success-header {
  text-align: center;
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
  border-bottom-color: #BBF7D0;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--success-color);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px auto;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: var(--text-main);
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-wrap i {
  font-size: 1.3rem;
  color: var(--primary-color);
}

.modal-close-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #F8FAFC;
}

/* Printable Application Slip */
.slip-container {
  background: #FFFFFF;
  border: 2px solid var(--primary-dark);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.slip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold-color);
  margin-bottom: 16px;
}

.slip-title-group {
  flex: 1;
}

.slip-logo-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  flex-shrink: 0;
}

.slip-photo-box {
  width: 65px;
  height: 80px;
  background: #F1F5F9;
  border: 1.5px solid var(--primary-dark);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slip-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slip-photo-fallback {
  font-size: 1.8rem;
  color: #94A3B8;
}

.slip-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.2;
}

.slip-header p {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

.slip-ref-bar {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.slip-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.slip-group {
  display: flex;
  flex-direction: column;
}

.slip-group.full-row {
  grid-column: span 2;
}

.slip-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.slip-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  background: #F8FAFC;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  word-break: break-word;
}

.slip-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qr-placeholder {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.qr-placeholder i {
  font-size: 1.8rem;
}

.slip-stamp-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 320px;
  text-align: right;
}

/* ADMIN PORTAL STYLES */
.admin-container {
  max-width: 1100px;
  width: 100%;
  margin: 32px auto 48px auto;
  padding: 0 16px;
  flex: 1;
}

.admin-header-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.admin-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 600px;
}

.export-btn-group {
  display: flex;
  gap: 12px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.kpi-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kpi-icon.gold {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.kpi-icon.blue {
  background: #E0F2FE;
  color: #0284C7;
}

.kpi-data {
  display: flex;
  flex-direction: column;
}

.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.kpi-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.table-controls-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.search-box input {
  padding-left: 40px;
}

.table-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #F8FAFC;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-color);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 0.9rem;
}

.admin-table tbody tr:hover {
  background-color: #F8FAFC;
}

.admin-footer-link {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.admin-footer-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  margin-top: auto;
  border-top: 3px solid var(--gold-color);
}

.footer-sub {
  font-size: 0.78rem;
  color: #64748B;
  margin-top: 4px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .hero-title { font-size: 1.4rem; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
  .slip-details-grid { grid-template-columns: 1fr; }
  .slip-group.full-row { grid-column: span 1; }
  .section-nav { grid-template-columns: 1fr; }
  .nav-container { flex-direction: column; gap: 12px; }
  .form-section { padding: 20px; }
  .photo-upload-container { flex-direction: column; align-items: flex-start; }
  .kpi-grid { grid-template-columns: 1fr; }
  .admin-header-card { flex-direction: column; align-items: flex-start; }
}

/* Print Stylesheet */
@media print {
  body * {
    visibility: hidden;
  }
  #submissionModal, #submissionModal *, #adminViewModal, #adminViewModal * {
    visibility: visible;
  }
  #submissionModal, #adminViewModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: #FFFFFF;
    padding: 0;
  }
  .modal-card {
    box-shadow: none;
    max-width: 100%;
  }
  .modal-header, .modal-footer {
    display: none !important;
  }
  .slip-container {
    border: 2px solid #000;
  }
}
