/* =============================================================================
   PANAF VIRTUAL AIRLINE THEME V3 - MAIN STYLESHEET
   Enhanced with CSS Custom Properties for consistent theming
   ============================================================================= */

/* CSS Custom Properties for Theme Colors */
:root {
  /* Primary Colors */
  --panaf-primary: #65825a;
  --panaf-primary-light: #7a9a6b;
  --panaf-primary-dark: #546b47;
  --panaf-accent: #8db380;
  --panaf-gold: #d4af37;
  
  /* Background Colors */
  --bg-primary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-header: #344e41;
  --bg-card-footer: #588157;
  
  /* Text Colors */
  --text-primary: #2d3a36;
  --text-secondary: #344e41;
  --text-light: #ffffff;
  --text-muted: rgba(45, 58, 54, 0.7);
  --text-on-card: #2d3a36;
  --text-on-green: #ffffff;
  
  /* Shadow Colors */
  --shadow-primary: rgba(52, 78, 65, 0.15);
  --shadow-strong: rgba(52, 78, 65, 0.25);
  
  /* Border Colors */
  --border-light: rgba(218, 215, 205, 0.3);
  --border-primary: #8db380;
  
  /* Interactive States */
  --hover-overlay: rgba(255, 255, 255, 0.15);
  --active-overlay: rgba(255, 255, 255, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* General Settings */
body {
  font-size: 0.9rem;
  font-weight: 400;
  font-family: 'Lato', 'Roboto', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-secondary);
  transition: color var(--transition-normal);
}

/* Generic Link Style */
a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--panaf-primary);
}

/* Card Style */
.card {
  background-color: var(--bg-card);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow-primary);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-strong);
}

.card .card-header {
  background: linear-gradient(135deg, var(--panaf-primary-dark) 0%, var(--panaf-primary) 50%, var(--panaf-primary-light) 100%);
  color: var(--text-light);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--panaf-accent);
}

.card .card-body {
  padding: 1.25rem;
  color: var(--text-on-card);
}

.card .card-footer {
  background: linear-gradient(135deg, var(--bg-card-footer) 0%, var(--panaf-primary) 100%);
  color: var(--text-on-green);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-top: 1px solid var(--border-primary);
  padding: 0.75rem 1.25rem;
}

/* Enhanced NavBar Style for PANAF Theme */
#panaf-navbar {
  background: linear-gradient(135deg, var(--panaf-primary-dark) 0%, var(--panaf-primary) 50%, var(--panaf-primary-light) 100%);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid var(--border-primary);
  box-shadow: 0 4px 20px var(--shadow-primary);
  z-index: 9998 !important;
  position: relative;
  transition: all var(--transition-normal);
}

#panaf-navbar .navbar-brand {
  font-weight: 600;
  color: var(--text-light) !important;
  transition: transform var(--transition-fast);
}

#panaf-navbar .navbar-brand:hover {
  transform: scale(1.05);
}

#panaf-navbar .brand-logo {
  height: 40px;
  width: auto;
  filter: brightness(1.1);
  transition: filter var(--transition-fast);
}

#panaf-navbar .brand-logo:hover {
  filter: brightness(1.3);
}

#panaf-navbar .brand-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
}

#panaf-navbar .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

#panaf-navbar .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, var(--hover-overlay), transparent);
  transition: all var(--transition-slow);
}

#panaf-navbar .nav-link:hover::before {
  left: 100%;
}

#panaf-navbar .nav-link:hover {
  color: #ffffff !important;
  background-color: var(--hover-overlay);
  transform: translateY(-2px);
}

#panaf-navbar .nav-link.active {
  color: #ffffff !important;
  background-color: var(--active-overlay);
  box-shadow: 0 2px 8px var(--shadow-strong);
}

#panaf-navbar .dropdown-menu {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px var(--shadow-primary);
  margin-top: 0.5rem;
  background-color: #f8f9fa;
  z-index: 9999 !important;
  position: absolute !important;
  backdrop-filter: blur(10px);
}

#panaf-navbar .dropdown-item {
  padding: 0.75rem 1rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  border-radius: 0.5rem;
  margin: 0.25rem;
}

#panaf-navbar .dropdown-item:hover {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  transform: translateX(5px);
}

#panaf-navbar .user-dropdown {
  background-color: var(--hover-overlay);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-fast);
}

#panaf-navbar .user-dropdown:hover {
  background-color: var(--active-overlay);
}

#panaf-navbar .user-avatar {
  color: var(--text-light);
}

#panaf-navbar .user-info {
  line-height: 1.2;
}

#panaf-navbar .user-name {
  font-weight: 600;
  color: var(--text-light);
}

#panaf-navbar .user-rank {
  font-size: 0.75rem;
  color: rgba(218, 215, 205, 0.8);
}

#panaf-navbar .user-menu {
  min-width: 220px;
}

#panaf-navbar .user-details {
  padding: 1rem;
  color: var(--text-secondary);
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  margin: 0.5rem;
}

#panaf-navbar .navbar-toggler {
  color: var(--text-light);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

#panaf-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(218, 215, 205, 0.25);
}

#panaf-navbar .navbar-toggler:hover {
  background-color: var(--hover-overlay);
}

#panaf-navbar .form-check-input:checked {
  background-color: var(--panaf-accent);
  border-color: var(--panaf-accent);
}

/* Fix z-index issues */
.carousel, .carousel-inner, .carousel-item {
  z-index: 1 !important;
}

.navbar-nav .dropdown-menu {
  z-index: 9999 !important;
}

.dropdown-menu.show {
  z-index: 9999 !important;
  position: absolute !important;
}

/* Legacy NavBar Style (fallback) */
#Dispo_NavBar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  background: var(--bg-card-header);
  transition: background var(--transition-normal);
}

#Dispo_NavBar .navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#Dispo_NavBar .nav-item {
  margin: 0 0.25rem;
}

#Dispo_NavBar a {
  display: block;
  padding: 0.75rem 1rem;
  margin: 0.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--text-light);
  background-color: var(--bg-card-header);
  font-weight: 500;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

#Dispo_NavBar a:hover {
  color: var(--text-light);
  background-color: var(--panaf-primary);
  transform: translateY(-2px);
}

#Dispo_NavBar a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, var(--hover-overlay), transparent);
  transition: all var(--transition-slow);
}

#Dispo_NavBar a:hover::before {
  left: 100%;
}

#Dispo_NavBar a:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  #Dispo_NavBar .navbar-nav {
    flex-direction: column;
  }
  #Dispo_NavBar .nav-item {
    margin: 0.25rem 0;
  }
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--panaf-primary) 0%, var(--panaf-primary-light) 100%);
  border: none;
  color: var(--text-light);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--panaf-primary-dark) 0%, var(--panaf-primary) 100%);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, var(--hover-overlay), transparent);
  transition: all var(--transition-slow);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Enhanced Form Controls */
.form-control, .form-select {
  border: 2px solid var(--border-light);
  border-radius: 0.5rem;
  transition: all var(--transition-fast);
  background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus, .form-select:focus {
  border-color: var(--panaf-primary);
  box-shadow: 0 0 0 0.2rem rgba(101, 130, 90, 0.25);
  background-color: #ffffff;
}

/* Carousel styling */
.carousel {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow-primary);
}

.carousel-item img {
  object-fit: cover;
  height: 400px;
  border-radius: 0.75rem;
}

.carousel-inner .carousel-item > img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Widget Styles */
.widget-stats table {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  color: var(--text-on-card);
}

/* Table Content Styling */
table, .table {
  color: var(--text-on-card);
}

table td, table th,
.table td, .table th {
  color: var(--text-on-card) !important;
}

.select2-container {
  border-radius: 0.5rem !important;
}

.select2-dropdown {
  background-color: #ffffff;
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px var(--shadow-primary);
}

.select2-container--bootstrap-5 .select2-dropdown {
  border-radius: 0.5rem;
}

.select2-container--bootstrap-5 .select2-selection {
  border: 2px solid var(--border-light);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-fast);
}

.select2-container--bootstrap-5 .select2-selection__rendered {
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
}

.select2-container--bootstrap-5 .select2-selection__arrow {
  height: 38px;
  right: 10px;
}

.select2-container--bootstrap-5 .select2-selection__placeholder {
  color: var(--text-muted);
}

/* Responsive Grid Adjustments */
.row-cols-md-2 .col-md {
  flex: 0 0 auto;
  width: 50%;
}

.col-lg-8, .col-lg-4 {
  transition: all var(--transition-normal);
}

@media (max-width: 768px) {
  #panaf-navbar .brand-text {
    display: none;
  }
  
  .col-lg-8, .col-lg-4 {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Image Helper Classes */
img {
  max-width: 100%;
  height: auto;
  transition: all var(--transition-fast);
}

img:hover {
  transform: scale(1.02);
}

/* Height Classes */
.img-h20 { width: auto; height: 20px; }
.img-h25 { width: auto; height: 25px; }
.img-h30 { width: auto; height: 30px; }
.img-h35 { width: auto; height: 35px; }
.img-h40 { width: auto; height: 40px; }
.img-h45 { width: auto; height: 45px; }
.img-h50 { width: auto; height: 50px; }
.img-h60 { width: auto; height: 60px; }
.img-h70 { width: auto; height: 70px; }
.img-h80 { width: auto; height: 80px; }
.img-h90 { width: auto; height: 90px; }
.img-h100 { width: auto; height: 100px; }
.img-h125 { width: auto; height: 125px; }
.img-h150 { width: auto; height: 150px; }
.img-h175 { width: auto; height: 175px; }
.img-h200 { width: auto; height: 200px; }

/* Max Height Classes */
.img-mh20 { width: auto; max-height: 20px; }
.img-mh25 { width: auto; max-height: 25px; }
.img-mh30 { width: auto; max-height: 30px; }
.img-mh35 { width: auto; max-height: 35px; }
.img-mh40 { width: auto; max-height: 40px; }
.img-mh45 { width: auto; max-height: 45px; }
.img-mh50 { width: auto; max-height: 50px; }
.img-mh60 { width: auto; max-height: 60px; }
.img-mh70 { width: auto; max-height: 70px; }
.img-mh80 { width: auto; max-height: 80px; }
.img-mh90 { width: auto; max-height: 90px; }
.img-mh100 { width: auto; max-height: 100px; }
.img-mh125 { width: auto; max-height: 125px; }
.img-mh150 { width: auto; max-height: 150px; }
.img-mh175 { width: auto; max-height: 175px; }
.img-mh200 { width: auto; max-height: 200px; }

/* Enhanced Form Styles */
.crew-center-form {
  border-radius: 1rem;
  box-shadow: 0 10px 30px var(--shadow-primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
  backdrop-filter: blur(10px);
  padding: 2rem;
  margin: 1rem 0;
}

.crew-center-form .segment {
  margin-bottom: 2rem;
}

.crew-center-form .segment h1 {
  color: var(--text-secondary);
  text-shadow: 1px 1px 2px var(--shadow-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.crew-center-form button, 
.crew-center-form input, 
.crew-center-form .button {
  color: var(--text-primary);
  background-color: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  padding: 0.75rem 1rem;
}

.crew-center-form label {
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.crew-center-form input {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  background-color: #ffffff;
}

.crew-center-form input:focus {
  box-shadow: 0 0 0 0.2rem rgba(101, 130, 90, 0.25);
}

.crew-center-form button,
.crew-center-form .button {
  color: var(--text-light);
  background: linear-gradient(135deg, var(--panaf-primary) 0%, var(--panaf-primary-light) 100%);
  border: none;
  cursor: pointer;
}

.crew-center-form button:hover,
.crew-center-form .button:hover {
  background: linear-gradient(135deg, var(--panaf-primary-dark) 0%, var(--panaf-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-primary);
}

.crew-center-form button:active,
.crew-center-form .button:active {
  transform: translateY(0);
}

.crew-center-form button .icon,
.crew-center-form .button .icon {
  margin-right: 0.5rem;
}

.crew-center-form .button-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crew-center-form .button-group button,
.crew-center-form .button-group .button {
  flex: 1;
  min-width: 120px;
}

.crew-center-form button.unit,
.crew-center-form .button.unit {
  background: linear-gradient(135deg, var(--panaf-accent) 0%, var(--panaf-primary-light) 100%);
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crew-center-form button.unit .icon,
.crew-center-form .button.unit .icon {
  color: var(--text-secondary);
}

.crew-center-form button.green,
.crew-center-form .button.green {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.crew-center-form button.blue,
.crew-center-form .button.blue {
  background: linear-gradient(135deg, #007bff 0%, #17a2b8 100%);
}

/* Enhanced Stats Carousel */
@keyframes lights {
  0% { 
    color: var(--panaf-gold);
    text-shadow: 0 0 10px var(--panaf-gold);
  }
  25% { 
    color: var(--panaf-primary);
    text-shadow: 0 0 15px var(--panaf-primary);
  }
  50% { 
    color: var(--panaf-accent);
    text-shadow: 0 0 20px var(--panaf-accent);
  }
  75% { 
    color: var(--panaf-primary-light);
    text-shadow: 0 0 15px var(--panaf-primary-light);
  }
  100% { 
    color: var(--panaf-gold);
    text-shadow: 0 0 10px var(--panaf-gold);
  }
}

.stats-carousel-container {
  perspective: 1000px;
  height: 300px;
  position: relative;
  margin: 2rem 0;
}

.stats-carousel {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate 20s infinite linear;
  transition: animation-play-state var(--transition-fast);
}

.stats-item {
  position: absolute;
  width: 200px;
  height: 100px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-header) 100%);
  border: 2px solid var(--border-primary);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow-primary);
  transition: all var(--transition-normal);
}

.stats-item:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px var(--shadow-strong);
}

.stats-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--panaf-gold);
  animation: lights 3s infinite;
}

.stats-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

@keyframes rotate {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* Stats item positioning */
.stats-item:nth-child(1) { transform: rotateY(0deg) translateZ(400px); }
.stats-item:nth-child(2) { transform: rotateY(30deg) translateZ(400px); }
.stats-item:nth-child(3) { transform: rotateY(60deg) translateZ(400px); }
.stats-item:nth-child(4) { transform: rotateY(90deg) translateZ(400px); }
.stats-item:nth-child(5) { transform: rotateY(120deg) translateZ(400px); }
.stats-item:nth-child(6) { transform: rotateY(150deg) translateZ(400px); }
.stats-item:nth-child(7) { transform: rotateY(180deg) translateZ(400px); }
.stats-item:nth-child(8) { transform: rotateY(210deg) translateZ(400px); }
.stats-item:nth-child(9) { transform: rotateY(240deg) translateZ(400px); }
.stats-item:nth-child(10) { transform: rotateY(270deg) translateZ(400px); }
.stats-item:nth-child(11) { transform: rotateY(300deg) translateZ(400px); }
.stats-item:nth-child(12) { transform: rotateY(330deg) translateZ(400px); }

.stats-carousel-container:hover .stats-carousel {
  animation-play-state: paused;
}

/* Enhanced UI Components */
.events-widget {
  border-radius: 0.75rem;
  overflow: hidden;
}

.top-nav-buttons {
  margin: 1rem 0;
}

.top-nav-buttons ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.top-nav-buttons li {
  flex: 0 0 auto;
}

.top-nav-buttons a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--panaf-primary) 0%, var(--panaf-primary-light) 100%);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.top-nav-buttons a:hover {
  background: linear-gradient(135deg, var(--panaf-primary-dark) 0%, var(--panaf-primary) 100%);
  transform: translateY(-2px);
  border-color: var(--panaf-gold);
}

@media (max-width: 600px) {
  .top-nav-buttons ul {
    flex-direction: column;
    align-items: center;
  }
  .top-nav-buttons li {
    width: 100%;
    max-width: 300px;
  }
}

/* Enhanced Dropdowns */
.dropdown-menu {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px var(--shadow-primary);
  backdrop-filter: blur(10px);
  background-color: rgba(248, 249, 250, 0.95);
}

.dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin: 0.25rem;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  transform: translateX(5px);
}

.form-check-input:checked {
  background-color: var(--panaf-primary);
  border-color: var(--panaf-primary);
}

.dropdown-divider {
  border-color: var(--border-light);
  margin: 0.5rem 0;
}

/* Enhanced Search Components */
.dropdown-menu .search-bar {
  padding: 0.5rem;
}

.dropdown-menu .search-input {
  border: 2px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 0.5rem;
  width: 100%;
  transition: all var(--transition-fast);
  background-color: #ffffff;
}

.dropdown-menu .search-input:focus {
  border-color: var(--panaf-primary);
  box-shadow: 0 0 0 0.2rem rgba(101, 130, 90, 0.25);
  outline: none;
}

.dropdown-menu .search-results {
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-menu .search-results .dropdown-item {
  font-size: 0.875rem;
}

.dropdown-menu .search-results .dropdown-item:hover {
  background-color: var(--hover-overlay);
  color: var(--text-secondary);
}

/* Enhanced Form Controls */
.form-control.airport_search {
  color: var(--text-primary);
  background-color: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-control.airport_search:focus {
  color: var(--text-primary);
  background-color: #ffffff;
  border-color: var(--panaf-primary);
  box-shadow: 0 0 0 0.2rem rgba(101, 130, 90, 0.25);
}

/* Enhanced Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  font-weight: 600;
}

/* Enhanced Background Utilities */
.bg-info {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
  color: #ffffff !important;
}

.bg-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  color: #ffffff !important;
}

/* Utility Classes */
/* Text Content Styling */
p, span, div:not(.card):not(.navbar):not(.dropdown-menu) {
  color: var(--text-primary);
}

.card p, .card span, .card div {
  color: var(--text-on-card);
}

/* Heading Overrides */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
  color: var(--text-on-card) !important;
}

.transition-all {
  transition: all var(--transition-normal);
}

.shadow-custom {
  box-shadow: 0 4px 12px var(--shadow-primary);
}

.border-radius-custom {
  border-radius: 0.75rem;
}

/* Loading Animations */
.loading-spinner {
  animation: spin 1s linear infinite;
}

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

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus States for Accessibility */
a:focus, 
button:focus, 
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--panaf-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  #panaf-navbar,
  .dropdown-menu,
  .btn,
  .form-check {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}