/* 
  RSLAF Digital Recruitment Portal — Official CSS v2.1
  Designed for clarity, authority, and accessibility.
  Uses only 5 core colors + semantic spacing.
*/

:root {
  /* Core Colors */
  --rslaf-dark-green: #003319;   /* Primary (Header, Logo) */
  --rslaf-green: #006633;       /* Primary Action (Buttons, Links) */
  --rslaf-light-green: #00994d; /* Secondary (Badges, Highlights) */
  --rslaf-gold: #ffd700;         /* Accent (Warnings, Icons) */
  --rslaf-gray-100: #f8f9fa;
  --rslaf-gray-200: #e9ecef;
  --rslaf-gray-300: #dee2e6;
  --rslaf-gray-700: #495057;
  --rslaf-gray-900: #212529;

  /* Spacing System */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-serif: 'Montserrat', sans-serif;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--rslaf-gray-900);
  background-color: var(--rslaf-gray-100);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === HEADER === */
.header {
  background: linear-gradient(135deg, var(--rslaf-dark-green), var(--rslaf-green));
  color: white;
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.logo {
  height: 48px;
  width: auto;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
}
.status-banner {
  background: var(--rslaf-gold);
  color: var(--rslaf-dark-green);
  padding: var(--space-xs) var(--space-sm);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* === NAVIGATION === */
.nav {
  background: white;
  box-shadow: var(--shadow);
}
.nav-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.nav-item a {
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-decoration: none;
}
.nav-item a:hover,
.nav-item a:focus {
  background: var(--rslaf-gray-100);
  color: var(--rslaf-green);
}
.nav-item a.active {
  background: var(--rslaf-green);
  color: white;
}

/* === MAIN CONTENT === */
.main {
  flex: 1;
  padding: var(--space-lg) 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  margin-bottom: var(--space-xl);
}
.section-title {
  font-size: 1.75rem;
  color: var(--rslaf-dark-green);
  margin-bottom: var(--space-md);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 64px;
  height: 4px;
  background: var(--rslaf-green);
  border-radius: 2px;
}

/* === CARDS & BOXES === */
.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-header {
  padding: var(--space-md);
  background: var(--rslaf-gray-100);
  font-weight: 600;
  color: var(--rslaf-gray-900);
}
.card-body {
  padding: var(--space-md);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.btn-primary {
  background: var(--rslaf-green);
  color: white;
}
.btn-primary:hover {
  background: var(--rslaf-dark-green);
}
.btn-secondary {
  background: var(--rslaf-gray-200);
  color: var(--rslaf-gray-900);
}
.btn-secondary:hover {
  background: var(--rslaf-gray-300);
}
.btn-outline {
  border: 1px solid var(--rslaf-green);
  color: var(--rslaf-green);
  background: transparent;
}
.btn-outline:hover {
  background: var(--rslaf-green);
  color: white;
}

/* === FORMS === */
.form-group {
  margin-bottom: var(--space-md);
}
.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--rslaf-gray-900);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--rslaf-gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--rslaf-green);
  box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.2);
}

/* === STATUS BADGES === */
.badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.badge-pending { background: #fef3c7; color: #92400e; } /* amber-100 */
.badge-eligible { background: #dcfce7; color: #166534; } /* emerald-100 */
.badge-not-eligible { background: #fee2e2; color: #b91c1c; } /* red-100 */
.badge-selected { background: #dbeafe; color: #1d4ed8; } /* blue-100 */
.badge-enlisted { background: #f3e8ff; color: #7e22ce; } /* violet-100 */

/* === TABLES === */
.table-responsive {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
}
.table th {
  background: var(--rslaf-dark-green);
  color: white;
  padding: var(--space-sm);
  text-align: left;
  font-weight: 600;
}
.table td {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--rslaf-gray-200);
}
.table tr:nth-child(even) {
  background: var(--rslaf-gray-100);
}

/* === ALERTS === */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}
.alert-warning {
  background: #fffbeb;
  border-left: 4px solid var(--rslaf-gold);
  color: #92400e;
}
.alert-info {
  background: #f0f9ff;
  border-left: 4px solid var(--rslaf-green);
  color: #059669;
}

/* === FOOTER === */
.footer {
  background: var(--rslaf-dark-green);
  color: white;
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
}
.footer-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}
.footer-links h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--rslaf-gold);
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: var(--space-xs);
}
.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}
.footer-links a:hover {
  color: white;
}
.copyright {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* === MOBILE MENU (for small screens) === */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
}
.mobile-menu {
  display: none;
}
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
  .mobile-menu-button {
    display: block;
  }
  .mobile-menu {
    display: block;
    background: white;
    box-shadow: var(--shadow);
    border-radius: var(--radius-md);
    margin-top: var(--space-sm);
    padding: var(--space-sm);
  }
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
  .mobile-nav-links a {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-align: center;
  }
  .container {
    padding: 0 var(--space-sm);
  }
  .section-title {
    font-size: 1.5rem;
  }
}

/* === UTILITY CLASSES (minimal & safe) === */
.text-center { text-align: center; }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-4 { margin-bottom: var(--space-md); }
.mb-6 { margin-bottom: var(--space-lg); }
.mt-4 { margin-top: var(--space-md); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none; }

/* === IMAGE STYLING === */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}
.hero-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

/* === NO MORE BLOAT — THIS IS FINAL */