/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
   ---------------------------------------------------- */
:root {
  /* Clean B&W Color Palette with Electric Blue Accent */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --card-bg: #ffffff;
  --card-border: #eaeaea;
  --card-border-hover: #111111;
  
  --text-primary: #000000;
  --text-muted: #666666;
  --text-dark: #a0a0a0;
  
  /* Brand Accent */
  --accent-color: #0070f3; /* Electric Blue */
  --accent-light: #f0f7ff;
  
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --transition-smooth: all 0.2s ease-in-out;
  
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'Outfit', 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', Menlo, Monaco, Consolas, 'Courier New', monospace;
  
  --box-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --box-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --box-shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.hidden {
  display: none !important;
}

/* ----------------------------------------------------
   BASE STYLES & RESET
   ---------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
}

/* ----------------------------------------------------
   LAYOUT CONTAINER
   ---------------------------------------------------- */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.5rem 1.5rem; /* Balanced top margin/padding */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 1.75rem;
}

/* ----------------------------------------------------
   HEADER STYLING
   ---------------------------------------------------- */
.app-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.5rem; /* Balanced top padding */
  padding-bottom: 1.5rem; /* Clean bottom padding */
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 0.1rem;
}

/* CAPSULE NAVIGATION BAR */
.app-nav {
  display: flex;
  align-items: center;
  background-color: #000000;
  border-radius: 9999px;
  padding: 6px 8px;
  gap: 0.3rem;
  border: 1px solid #1f1f1f;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-logo-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  margin-right: 4px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 16px;
  height: 16px;
}

.nav-brand-text {
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.88rem;
  margin-right: 1.25rem;
  margin-left: 0.25rem;
  letter-spacing: -0.018em;
  user-select: none;
}

.nav-link {
  color: #a5a5a5;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.03) translateY(-0.5px);
}

.nav-link:active {
  transform: scale(0.96) translateY(0);
}

.nav-link.active {
  color: #000000;
  background: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.nav-link.active:hover {
  color: #000000;
  background: #ffffff;
  transform: scale(1.02);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-dark);
}

.status-indicator.online {
  background-color: var(--accent-color);
}

.status-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ----------------------------------------------------
   GRID CARD STYLING (MINIMALIST WHITE)
   ---------------------------------------------------- */
.main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.grid-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
  box-shadow: var(--box-shadow-sm);
}

.grid-card:hover {
  border-color: #d1d1d1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.header-icon {
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ----------------------------------------------------
   FORM ELEMENTS
   ---------------------------------------------------- */
.app-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 0.75rem 0.85rem 0.75rem 2.35rem;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  appearance: none;
}

.input-wrapper select {
  cursor: pointer;
}

.input-wrapper:has(select)::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  outline: none;
  border-color: var(--text-primary);
}

/* Drag and Drop Zone */
.upload-zone {
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.upload-zone.dragover {
  border-color: var(--text-primary);
  background: #f4f4f4;
}

.upload-icon {
  font-size: 1.75rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.upload-zone:hover .upload-icon {
  color: var(--text-primary);
}

.upload-main-text {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.browse-link {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: underline;
}

.upload-sub-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* File Badge */
.file-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-primary);
  margin-top: 0.5rem;
  animation: fadeIn 0.2s ease;
}

.file-badge .remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.file-badge .remove-btn:hover {
  color: var(--text-primary);
}

/* Primary Button */
.primary-btn {
  background: #000000;
  border: 1px solid #000000;
  color: #ffffff;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0.25rem;
  width: 100%;
}

.primary-btn:hover {
  background: #111111;
  border-color: #111111;
  transform: scale(1.01) translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.primary-btn:active {
  background: #222222;
  transform: scale(0.99) translateY(0);
}

/* ----------------------------------------------------
   TERMINAL CONSOLE (MATTE BLACK WRAPPER)
   ---------------------------------------------------- */
.terminal-wrapper {
  background: #09090b;
  border: 1px solid #18181b;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--box-shadow-md);
  margin-bottom: 1.25rem;
}

.terminal-header {
  background: #18181b;
  border-bottom: 1px solid #27272a;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #27272a;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #a1a1aa;
}

.terminal-body {
  padding: 1rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.terminal-line {
  line-height: 1.4;
  word-break: break-all;
}

.terminal-line.cmd-prompt {
  color: #fafafa;
}

.terminal-line.cmd-prompt::before {
  content: "> ";
  color: var(--text-dark);
}

.terminal-line.system-msg {
  color: #71717a;
}

.terminal-line.success-msg {
  color: #22c55e;
}

.terminal-line.progress-msg {
  color: var(--accent-color);
}

.terminal-line.code-call {
  color: #e4e4e7;
}

/* ----------------------------------------------------
   ANALYSIS RESULTS INTERFACE
   ---------------------------------------------------- */
.analysis-result-panel {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  animation: slideDown 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-secondary);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.match-score-badge {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

.placement-badge {
  background: #000000;
  color: #ffffff;
  padding: 0.6rem;
  text-align: center;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.result-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.result-block h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-block p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.result-navigation-tip {
  border-top: 1px solid var(--card-border);
  padding-top: 0.75rem;
}

.tip-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.accent-link {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: underline;
}

/* ----------------------------------------------------
   AVAILABLE COMMITTEE POSITIONS LAYOUT (APPLY NOW BOTTOM)
   ---------------------------------------------------- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.role-committee-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-primary);
}

.role-committee-card.web-dev {
  border-top: 3px solid var(--accent-color);
}
.role-committee-card.web-dev:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(0, 112, 243, 0.06);
}
.role-committee-card.web-dev .role-header i {
  color: var(--accent-color);
}

.role-committee-card.marketing {
  border-top: 3px solid #a855f7;
}
.role-committee-card.marketing:hover {
  border-color: #a855f7;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.06);
}
.role-committee-card.marketing .role-header i {
  color: #a855f7;
}

.role-committee-card.logistics {
  border-top: 3px solid #f97316;
}
.role-committee-card.logistics:hover {
  border-color: #f97316;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.06);
}
.role-committee-card.logistics .role-header i {
  color: #f97316;
}

.role-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role-header i {
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.role-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.role-intro {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.role-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--card-border);
  padding-top: 0.85rem;
  margin-top: auto;
}

.role-list li {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.role-list li strong {
  color: var(--text-primary);
  display: block;
}

/* ----------------------------------------------------
   STATUS TRACKER LOOKUP PAGE
   ---------------------------------------------------- */
.lookup-section {
  max-width: 550px;
  margin: 2rem auto;
  text-align: center;
}

.lookup-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
}

.search-bar .input-wrapper {
  flex-grow: 1;
}

.search-bar .primary-btn {
  width: auto;
  padding: 0 1.5rem;
  margin-top: 0;
  white-space: nowrap;
}

.status-feedback-card {
  margin-top: 1.5rem;
  animation: slideDown 0.3s ease;
}

.applicant-profile-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.profile-item span {
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.profile-item strong {
  color: var(--text-primary);
}

.alert-info-box {
  border: 1px solid var(--card-border);
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.alert-info-box i {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.alert-info-box h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ----------------------------------------------------
   STATUS TRACKER TIMELINE
   ---------------------------------------------------- */
.tracker-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.5rem 0;
  gap: 1rem;
}

.tracker-timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--card-border);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  z-index: 2;
  position: relative;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.step-content {
  margin-top: 0.75rem;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  max-width: 140px;
}

/* States styling */
.timeline-step.active .step-circle {
  border-color: var(--text-primary);
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-step.active .step-content h3 {
  color: var(--text-primary);
}

.timeline-step.completed .step-circle {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.timeline-step.completed .step-content h3 {
  color: #000000;
}

/* ----------------------------------------------------
   ONBOARDING CHECKLIST
   ---------------------------------------------------- */
.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
}

.card-header-flex .card-header {
  margin-bottom: 0;
}

/* Checklist Progress */
.progress-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.progress-bar-bg {
  width: 120px;
  height: 4px;
  background: #eaeaea;
  border-radius: 50px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #000000;
  border-radius: 50px;
  transition: width 0.3s ease;
}

/* Checklist Items */
.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.checklist-item:hover {
  background: var(--bg-secondary);
}

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

.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #dcdcdc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: transparent;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  background: #ffffff;
}

.checklist-item input:checked + .checkbox-custom {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.checklist-text {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.checklist-item input:checked ~ .checklist-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ----------------------------------------------------
   OFFICER / ADMIN STYLING
   ---------------------------------------------------- */
.login-card {
  max-width: 400px;
  margin: 4rem auto;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-top: 0.5rem;
}

.dashboard-header-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.logout-btn {
  background: #ffffff;
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.logout-btn:hover {
  background: #f0f0f0;
}

/* Stats panels (Updated B&W layout) */
.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--box-shadow-sm);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
}

.stat-details h4 {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-details span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Committee Distribution Stats styling */
.committee-breakdown-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow-sm);
}

.breakdown-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breakdown-card strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

/* Administrative filters styling */
.dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.filter-select {
  padding: 0.35rem 1.5rem 0.35rem 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  appearance: none;
  position: relative;
}

.filter-wrapper {
  position: relative;
}

.filter-wrapper::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.7rem;
  pointer-events: none;
}

.filter-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Applicant Table Layout */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
}

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

.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--card-border);
}

.admin-table th {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.admin-table tbody tr:hover {
  background: var(--bg-secondary);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.badge.blue { background: #f0f4f8; color: #1e3a8a; border-color: #dbeafe; }
.badge.purple { background: #faf5ff; color: #581c87; border-color: #f3e8ff; }
.badge.orange { background: #fffbeb; color: #78350f; border-color: #fef3c7; }
.badge.green { background: #f0fdf4; color: #14532d; border-color: #dcfce7; }
.badge.red { background: #fef2f2; color: #7f1d1d; border-color: #fee2e2; }

/* Table action buttons */
.action-btns {
  display: flex;
  gap: 0.3rem;
}

.action-btn {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.75rem;
}

.action-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background: var(--bg-secondary);
}

.action-btn.interview:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: var(--accent-light);
}

.action-btn.approve:hover {
  color: #16a34a;
  border-color: #16a34a;
  background: #f0fdf4;
}

.action-btn.reject:hover {
  color: #ef4444;
  border-color: #ef4444;
  background: #fef2f2;
}

.action-btn.delete:hover {
  color: #ef4444;
  border-color: #ef4444;
  background: #fef2f2;
}

/* Details Overlay/Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  box-shadow: var(--box-shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Empty Table state */
.empty-table-msg {
  padding: 3rem !important;
  text-align: center;
  color: var(--text-muted);
}

.empty-table-msg i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* ----------------------------------------------------
   FOOTER STYLING
   ---------------------------------------------------- */
.app-footer {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: auto;
}

/* ----------------------------------------------------
   ANIMATION KEYFRAMES
   ---------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

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

/* ----------------------------------------------------
   RESPONSIVE DESIGN (MOBILE-FIRST BREAKPOINTS)
   ---------------------------------------------------- */

/* Tablet Viewport (Under 992px) */
@media (max-width: 992px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  
  .span-full {
    grid-column: span 1;
  }

  .stats-panel {
    grid-template-columns: 1fr;
  }

  .committee-breakdown-panel {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .roles-grid {
    grid-template-columns: 1fr;
  }
  
  .tracker-timeline {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .timeline-step {
    flex: unset;
    width: 100%;
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    align-items: center;
  }

  .tracker-timeline::before {
    display: none;
  }

  .step-content {
    margin-top: 0;
  }

  .step-content p {
    max-width: unset;
  }
}

/* Mobile Viewport (Under 576px) */
@media (max-width: 576px) {
  .app-container {
    padding: 1rem;
    gap: 1.5rem;
  }

  .app-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
  }

  .app-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 6px;
  }

  .nav-brand-text {
    display: none;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
  }

  .system-status {
    width: 100%;
    justify-content: center;
  }

  .brand {
    width: 100%;
  }

  .brand-text h1 {
    font-size: 1.25rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .grid-card {
    padding: 1.25rem;
  }

  .terminal-wrapper {
    height: 220px;
  }

  .progress-container {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  .progress-bar-bg {
    flex-grow: 1;
    max-width: 180px;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar .primary-btn {
    width: 100%;
  }

  .dashboard-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}
