/* CSS Reset & Variable Setup - Milapps Jayhawk Navy & Gold Palette */
:root {
  --bg-primary: #10145f;            /* Rich Deep Military Navy Blue */
  --bg-secondary: #1c2178;          /* Structured Navy Slate */
  --bg-card: #1c2178;               /* Solid Card Surface */
  --bg-card-hover: #292f91;         /* Elevated Navy Card Hover */
  
  --brand-navy: #10145f;            /* Deep Navy */
  --brand-navy-light: #1c2178;
  --brand-blue: #00aeea;            /* Sky / Cyan Blue Accent */
  --brand-blue-hover: #37cfff;  
  --brand-red: #ed1c24;             /* Command Red Accent */
  --brand-red-hover: #ff4b52;   
  --brand-yellow: #fff200;          /* Jayhawk Gold / Yellow */
  --brand-yellow-hover: #e6d800;

  --accent-gold: #fff200;
  --accent-gold-glow: rgba(255, 242, 0, 0.25);
  --accent-blue: #00aeea;
  --accent-red: #ed1c24;

  --text-primary: #ffffff;          /* High-Contrast Crisp White */
  --text-secondary: #d7d9ef;        /* Readable High-Contrast Grayish Blue */
  --text-muted: #9ea3d1;
  --border-color: rgba(255, 255, 255, 0.12);          /* Crisp Solid Border */
  --border-highlight: #fff200;
  
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --transition: all 0.2s ease-in-out;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header - Deep Navy Blue Command Bar with Gold Accent Bottom Border */
.header {
  border-bottom: 2px solid var(--brand-yellow);
  background: linear-gradient(135deg, #10145f 0%, #1c2178 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  height: auto;
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  padding: 0.25rem 1.25rem;
  gap: 0.75rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
}

.site-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.site-logo-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: var(--brand-red);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Header Navigation Bar - Compact & Guaranteed Single-Row on Desktop */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.22rem 0.48rem;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: var(--transition);
}

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

.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border-bottom: 2px solid var(--brand-yellow);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Top-Right Header User Auth Pill - Ultra Compact & Modern */
.header-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.73rem;
  color: #cbd5e1;
  white-space: nowrap;
}

.header-user-pill .status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 5px rgba(34, 197, 94, 0.8);
  flex-shrink: 0;
}

.header-user-email {
  color: #60a5fa;
  font-weight: 600;
  font-size: 0.73rem;
  max-width: 175px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.user-logged-label {
  color: #94a3b8;
  font-size: 0.72rem;
}

/* Compact Action Buttons */
.btn-logout-sm {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.16rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.25;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-logout-sm:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.btn-changepass-sm {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  padding: 0.16rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.25;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-changepass-sm:hover {
  background: #9333ea;
  color: #ffffff;
  border-color: #9333ea;
}

.btn-signin-sm {
  background: var(--brand-red);
  color: #ffffff;
  padding: 0.22rem 0.6rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-signin-sm:hover {
  background: var(--brand-red-hover);
}

/* Responsive & Mobile-Friendly Header Navigation */
@media (max-width: 1080px) {
  .header-container {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 
      "logo auth"
      "nav nav";
    gap: 0.35rem 0.5rem;
    padding: 0.35rem 0.75rem;
    align-items: center;
  }

  .header-left {
    display: contents;
  }

  .logo-group {
    grid-area: logo;
  }

  .site-logo-img {
    height: 28px;
  }

  .header-right {
    grid-area: auth;
    justify-self: end;
  }

  .site-nav {
    grid-area: nav;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    gap: 0.3rem;
    padding-bottom: 2px;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 0.74rem;
    padding: 0.22rem 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    flex-shrink: 0;
  }

  .nav-link.active {
    background: rgba(255, 242, 0, 0.22);
    border: 1px solid var(--brand-yellow);
    color: #ffffff;
  }
}

@media (max-width: 640px) {
  .header-user-email {
    max-width: 130px;
  }

  .user-logged-label {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, #1c2178 0%, #10145f 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-container {
  max-width: 750px;
}

.subtitle-tag {
  color: var(--brand-yellow);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-description {
  color: #d1d5db;
  font-size: 1.1rem;
}

/* Grid & Cards Section */
.portal-grid-section {
  padding: 2rem 0 5rem;
  flex-grow: 1;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
  opacity: 0;
  transition: var(--transition);
}

a.portal-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

.card-resources {
  border-top: 4px solid var(--brand-red) !important;
}

.card-outreach {
  border-top: 4px solid #ffffff !important;
}

.card-attic {
  border-top: 4px solid var(--brand-blue) !important;
}

.card-pt {
  border-top: 4px solid var(--brand-yellow) !important;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.icon-pt {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
}

.icon-attic {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
}

.icon-outreach {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.icon-future {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
}

.card-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-upcoming {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border-color: rgba(148, 163, 184, 0.2);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.925rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

a.portal-card:hover .arrow-icon {
  transform: translateX(4px);
}

.disabled-card {
  opacity: 0.6;
  cursor: not-allowed;
}

.disabled-card .card-footer {
  color: var(--text-muted);
}

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

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.disclaimer-box {
  background: rgba(28, 33, 120, 0.6);
  border: 1px dashed rgba(255, 242, 0, 0.35);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.825rem;
  color: var(--text-secondary);
  max-width: 800px;
}

.disclaimer-box strong {
  color: var(--accent-gold);
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .header-badge {
    display: none;
  }
}

/* OPSEC Notice Box & Calendar Wrapper */
.opsec-notice-box {
  background: rgba(147, 51, 234, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

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

.opsec-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: #e9d5ff;
}

.opsec-notice-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.opsec-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.opsec-badge {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-purple, .btn-primary {
  background: var(--brand-red);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.btn-purple:hover, .btn-primary:hover {
  background: var(--brand-red-hover);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
  transform: translateY(-2px);
}

.btn-outline-purple {
  background: rgba(245, 158, 11, 0.1);
  color: var(--brand-yellow);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-outline-purple:hover {
  background: var(--brand-yellow);
  color: #0b0f17;
  font-weight: 700;
}

.btn-block {
  width: 100%;
}

.calendar-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.calendar-header-bar {
  background: rgba(30, 41, 59, 0.9);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border-color);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #4ade80;
  font-weight: 600;
}

.live-indicator .dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
}

/* Native Calendar UI Styling - Google Calendar Dark Theme */
.calendar-wrapper {
  background: #0b132b;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.native-cal-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--brand-navy);
  border-bottom: 1px solid var(--border-color);
}

.cal-month-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cal-month-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  min-width: 220px;
  text-align: center;
  letter-spacing: 0.02em;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}

.cal-today-btn {
  background: var(--brand-yellow) !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border: none !important;
}

.cal-today-btn:hover {
  filter: brightness(1.1);
}

/* Uniform Full-Width Calendar Grid Container */
.cal-grid-container {
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.cal-week-days {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #070c1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.cal-day-header {
  padding: 0.85rem 0.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-yellow);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-day-header:last-child {
  border-right: none;
}

.cal-days-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(115px, auto);
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.15);
  gap: 1px;
}

.cal-day-cell {
  background: #1b263b; /* Distinct crisp dark slate box for active month dates */
  padding: 0.5rem 0.35rem;
  min-height: 115px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: background 0.15s ease;
  position: relative;
  overflow: hidden;
}

.cal-day-cell:hover {
  background: #25334d;
}

/* Greyed-out background for previous / next month overflow dates */
.cal-day-cell.other-month {
  background: #0d1322;
}

.cal-day-cell.other-month .cal-day-num {
  color: #475569; /* Muted grey date number */
}

/* Google Calendar Style Current Day Highlight */
.cal-day-cell.today {
  background: rgba(37, 99, 235, 0.18);
  box-shadow: inset 0 0 0 2px var(--brand-yellow);
  border-left: 3px solid #2563eb;
}

.cal-day-num {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.today-circle {
  background: #2563eb;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.5);
}

.cal-day-cell.today .cal-day-num {
  color: var(--brand-yellow);
}

.cal-events-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  overflow-y: auto;
  min-width: 0;
  width: 100%;
}

.cal-event-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cal-event-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

/* Category Color Coding */
.cat-community { background-color: #16a34a; }
.cat-readiness { background-color: #2563eb; }
.cat-morale { background-color: #9333ea; }
.cat-stem { background-color: #ea580c; }
.cat-recruiting { background-color: #dc2626; }
.cat-default { background-color: #475569; }

/* Modal Overlay Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.modal-card {
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background: var(--brand-navy);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Form Styling */
.outreach-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c084fc;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
}

/* White crisp calendar & clock picker icons on dark inputs */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(100%);
  cursor: pointer;
  opacity: 0.9;
  transition: var(--transition);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* Authentication Card & Roster Request Styles */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

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

.auth-icon {
  width: 56px;
  height: 56px;
  background: rgba(147, 51, 234, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  padding: 12px;
}

.auth-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 1rem;
}

.roster-signup-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(168, 85, 247, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.signup-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.signup-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-outline-purple {
  background: transparent;
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.btn-outline-purple:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #c084fc;
  color: #ffffff;
}

.btn-outline-danger {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
}

.btn-outline-danger:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: #f87171;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
}

/* Privacy Disclaimer Box */
.privacy-disclaimer-box {
  background: rgba(30, 41, 59, 0.7);
  border-left: 3px solid #f59e0b;
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-disclaimer-box strong {
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Status Messages */
.status-msg {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.5;
}

.status-info {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-success {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.user-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
}

/* FullCalendar Dark Theme Overrides */
.fc {
  color: var(--text-primary);
  font-family: var(--font-body);
}

.fc .fc-toolbar-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.fc .fc-button-primary {
  background-color: rgba(30, 41, 59, 0.9);
  border-color: var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  text-transform: capitalize;
}

.fc .fc-button-primary:hover {
  background-color: #9333ea;
  border-color: #a855f7;
}

.fc .fc-button-primary:disabled {
  background-color: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.05);
}

.fc-theme-standard td, .fc-theme-standard th {
  border-color: var(--border-color) !important;
}

.fc-theme-standard .fc-scrollgrid {
  border-color: var(--border-color) !important;
  border-radius: 8px;
}

.fc .fc-daygrid-day-number {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 8px;
}

.fc .fc-col-header-cell-cushion {
  color: var(--accent-blue);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fc-event {
  background-color: #9333ea !important;
  border-color: #c084fc !important;
  color: #ffffff !important;
  border-radius: 4px;
  padding: 2px 5px;
  cursor: pointer;
}

/* Event Detail Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: #1e293b;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 16px;
  width: 100%;
  max-width: 550px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.modal-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #c084fc;
  text-transform: uppercase;
  background: rgba(168, 85, 247, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.modal-detail-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.detail-icon {
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.modal-detail-row strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  margin-bottom: 0.15rem;
}

.modal-detail-row p {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Autocomplete Dropdown Styling */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.autocomplete-item strong {
  color: var(--text-primary);
  display: block;
}

.autocomplete-item small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* FullCalendar Category Block Styling Overrides */
.fc-event {
  border: none !important;
  border-radius: 4px !important;
  padding: 3px 6px !important;
  margin-bottom: 2px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.fc-daygrid-dot-event .fc-daygrid-event-dot {
  display: none !important; /* Remove dot indicator so solid box color fills the bar */
}

.fc-event-title, .fc-event-time {
  color: inherit !important;
}

/* Airman's Attic Inventory & Filter Grid Styles */
.filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

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

.cat-filter-btn, .status-filter-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-filter-btn:hover, .status-filter-btn:hover {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.4);
}

.cat-filter-btn.active, .status-filter-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  font-weight: 700;
}

.inventory-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.inventory-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.inventory-item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.inventory-item-card.out-of-stock-card {
  opacity: 0.65;
  background: rgba(15, 23, 42, 0.5);
}

.inventory-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cat-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-yellow);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.stock-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.badge-in-stock {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-low-stock {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-out-stock {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.inventory-item-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1rem;
  flex: 1;
}

.inventory-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qty-display {
  display: flex;
  flex-direction: column;
}

.qty-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

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

.quick-actions {
  display: flex;
  gap: 0.4rem;
}

.btn-quick-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.btn-donate {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.btn-donate:hover {
  background: #22c55e;
  color: #0f172a;
}

.btn-take {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-take:hover:not(:disabled) {
  background: #ef4444;
  color: #ffffff;
}

.btn-take:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Header Auth Area & Pill Styling */
.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-user-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  flex-shrink: 0;
}

.btn-logout-sm {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout-sm:hover {
  background: #dc2626;
  color: #ffffff;
}

.btn-signin-sm {
  background: var(--accent-gold);
  color: #000000;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-signin-sm:hover {
  background: #d97706;
}

/* Responsive Mobile Calendar Styling - Zero Scroll, 100% Viewport, Strict Equal Width Columns */
@media (max-width: 768px) {
  .native-cal-controls {
    padding: 0.85rem 0.6rem !important;
  }

  .native-cal-controls h2 {
    font-size: 1.15rem !important;
  }

  .cal-month-center {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .cal-month-title {
    font-size: 1.05rem;
    min-width: auto;
  }

  .cal-nav-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
  }

  .cal-day-header {
    padding: 0.5rem 0.1rem;
    font-size: 0.72rem;
    letter-spacing: 0;
  }

  .cal-days-grid {
    grid-auto-rows: minmax(70px, auto);
  }

  .cal-day-cell {
    min-height: 70px;
    padding: 0.25rem 0.15rem;
  }

  .cal-day-num {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }

  .today-circle {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }

  .cal-events-container {
    gap: 0.15rem;
  }

  .cal-event-badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.25rem;
    border-radius: 3px;
  }
}

/* Resources Web Apps Hub Styling */
.resources-hub-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem 1rem;
}

/* 184 Hangar Web Search Component */
.hangar-web-search-card {
  background: linear-gradient(180deg, #18206d 0%, #121858 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.hangar-search-title {
  text-align: center;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
}

.hangar-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hangar-search-input-wrapper {
  width: 100%;
}

.hangar-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 14, 38, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hangar-search-input:focus {
  border-color: #00aeea;
  box-shadow: 0 0 10px rgba(0, 174, 234, 0.3);
}

.hangar-search-input::placeholder {
  color: #8f97bd;
}

.hangar-search-controls-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.hangar-search-select-wrapper {
  flex: 1;
  position: relative;
}

.hangar-search-select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 14, 38, 0.85);
  color: #ffffff;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 2.2rem 0.65rem 1rem;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hangar-search-select.is-america-gov {
  border: 2px solid #FFDE32;
  box-shadow: 0 0 8px rgba(255, 222, 50, 0.2);
}

.hangar-search-select option {
  background: #0f172a;
  color: #ffffff;
  padding: 0.5rem;
}

.hangar-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hangar-search-btn:hover {
  background: rgba(0, 174, 234, 0.25);
  border-color: #00aeea;
  color: #ffffff;
  transform: translateY(-1px);
}

.hangar-search-btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hangar-search-instructions {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.75rem;
  color: #FFDE32;
  font-size: 0.88rem;
  line-height: 1.45;
}

.hangar-info-icon {
  font-size: 1rem;
  line-height: 1.35;
  flex-shrink: 0;
  color: #FFDE32;
}

.hangar-instructions-desktop {
  display: inline;
}

.hangar-instructions-mobile {
  display: none;
}

.hangar-search-fallback {
  margin-top: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hangar-fallback-msg {
  font-size: 0.85rem;
  color: #fca5a5;
}

.hangar-fallback-btn {
  background: #FFDE32;
  color: #0f172a;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.hangar-fallback-btn:hover {
  background: #fff200;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .hangar-instructions-desktop {
    display: none;
  }
  .hangar-instructions-mobile {
    display: inline;
  }
  .hangar-search-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hangar-search-btn {
    width: 100%;
    justify-content: center;
  }
}

.resources-search-bar-wrapper {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.resources-search-input-box {
  position: relative;
  max-width: 650px;
  margin: 0 auto 1.25rem auto;
}

.resources-search-input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 2.8rem;
  background: #1b263b;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.resources-search-input:focus {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.3);
}

.resources-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #94a3b8;
  pointer-events: none;
}

.resources-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.resource-pill-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.resource-pill-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.resource-pill-btn.active {
  background: var(--brand-yellow) !important;
  color: #000000 !important;
  border-color: var(--brand-yellow) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
}

.resource-section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #ffffff;
  margin: 2rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.app-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.app-link-card {
  background: #162238;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-yellow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.app-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.app-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.app-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.bookmark-star-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 0;
  line-height: 1;
}

.bookmark-star-btn:hover {
  color: var(--brand-yellow);
  transform: scale(1.15);
}

.bookmark-star-btn.starred {
  color: var(--brand-yellow) !important;
}

.app-card-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 1rem;
  flex: 1;
}

.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-category-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-launch-app {
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.5);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-launch-app:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}



