/**
 * Ham Test Pro - Custom Bootstrap Theme
 * File: style.css
 * Path: /css/style.css
 * Date: 2025-07-31
 * 
 * Custom Bootstrap theme based on green color scheme from logo
 * Colors extracted from logo: Deep green, lighter green, gold accents
 */

/* ============================================================================
   BOOTSTRAP VARIABLE OVERRIDES - Green Theme
   ============================================================================ */

:root {
  /* Primary Green Colors (from logo) */
  --bs-primary: #2d5016;
  /* Deep forest green */
  --bs-primary-rgb: 45, 80, 22;
  --bs-secondary: #4a7c59;
  /* Medium green */
  --bs-secondary-rgb: 74, 124, 89;

  /* Accent Colors */
  --bs-success: #28a745;
  /* Standard Bootstrap success green */
  --bs-success-rgb: 40, 167, 69;
  --bs-warning: #ffd700;
  /* Gold from logo */
  --bs-warning-rgb: 255, 215, 0;
  --bs-info: #17a2b8;
  /* Teal blue */
  --bs-info-rgb: 23, 162, 184;
  --bs-danger: #dc3545;
  /* Red for errors */
  --bs-danger-rgb: 220, 53, 69;

  /* Light/Dark Colors */
  --bs-light: #f8f9fa;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark: #1c3d0f;
  /* Very dark green */
  --bs-dark-rgb: 28, 61, 15;

  /* Background Colors */
  --bs-body-bg: #ffffff;
  --bs-body-color: #212529;

  /* Green Theme Specific Variables */
  --ham-green-primary: #2d5016;
  /* Deep green from logo */
  --ham-green-secondary: #4a7c59;
  /* Medium green */
  --ham-green-light: #7fb069;
  /* Light green */
  --ham-green-lighter: #a8d089;
  /* Very light green */
  --ham-gold: #ffd700;
  /* Gold accent */
  --ham-gold-dark: #cc9900;
  /* Darker gold for hover states */

  /* Component specific colors */
  --navbar-bg: var(--ham-green-primary);
  --card-accent: var(--ham-green-light);
  --button-hover: var(--ham-green-secondary);
}

/* ============================================================================
   GLOBAL STYLES - BEVELED TEXT WITH DROP SHADOWS
   ============================================================================ */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  /* Default green theme background */
  background: linear-gradient(135deg, #f8fdf8 0%, #f1f8f1 50%, #e8f5e8 100%);
}

/* BEVELED TEXT EFFECTS */

/* Main headings - Deep beveled effect with gold highlights */
h1,
h2,
h3,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  color: var(--ham-green-primary);
  font-weight: 700;
  text-shadow:
    1px 1px 0px rgba(255, 215, 0, 0.8),
    /* Gold highlight */
    2px 2px 0px rgba(45, 80, 22, 0.6),
    /* Green shadow */
    3px 3px 3px rgba(0, 0, 0, 0.3),
    /* Drop shadow */
    0px 1px 0px rgba(255, 255, 255, 0.9);
  /* Top highlight */
  background: linear-gradient(135deg,
      rgba(255, 215, 0, 0.1) 0%,
      transparent 50%,
      rgba(45, 80, 22, 0.1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Sub-headings - Subtle bevel */
h4,
h5,
h6,
.card-title,
.modal-title {
  color: var(--ham-green-secondary);
  font-weight: 600;
  text-shadow:
    1px 1px 0px rgba(255, 215, 0, 0.5),
    /* Gold highlight */
    1px 1px 2px rgba(0, 0, 0, 0.2),
    /* Subtle shadow */
    0px 1px 0px rgba(255, 255, 255, 0.7);
  /* Top highlight */
}

/* Navigation brand - Premium beveled effect */
.navbar-brand {
  color: white !important;
  font-weight: 700;
  font-size: 1.4rem;
  text-shadow:
    1px 1px 0px var(--ham-gold),
    /* Gold highlight */
    2px 2px 0px rgba(0, 0, 0, 0.8),
    /* Deep shadow */
    3px 3px 5px rgba(0, 0, 0, 0.5),
    /* Drop shadow */
    0px 1px 0px rgba(255, 255, 255, 0.3);
  /* Top highlight */
}

/* Navigation links - Subtle bevel */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  text-shadow:
    1px 1px 1px rgba(0, 0, 0, 0.5),
    /* Shadow for contrast */
    0px 1px 0px rgba(255, 255, 255, 0.1);
  /* Subtle highlight */
}

/* Button text - Embossed effect */
.btn {
  font-weight: 600;
  text-shadow:
    0px 1px 0px rgba(0, 0, 0, 0.3),
    /* Embossed shadow */
    0px -1px 0px rgba(255, 255, 255, 0.2);
  /* Top highlight */
  transition: all 0.3s ease;
}

/* Card headers - Professional bevel */
.card-header,
.card-title {
  text-shadow:
    1px 1px 0px rgba(255, 215, 0, 0.3),
    /* Gold tint */
    1px 1px 2px rgba(0, 0, 0, 0.2),
    /* Drop shadow */
    0px 1px 0px rgba(255, 255, 255, 0.6);
  /* Highlight */
}

/* Form labels - Subtle emboss */
.form-label,
label {
  color: var(--ham-green-primary);
  font-weight: 600;
  text-shadow:
    0px 1px 0px rgba(255, 255, 255, 0.8),
    /* White highlight */
    1px 1px 1px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
}

/* Hero title - Maximum impact bevel */
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-shadow:
    2px 2px 0px var(--ham-gold),
    /* Gold edge */
    4px 4px 0px rgba(45, 80, 22, 0.8),
    /* Green depth */
    6px 6px 8px rgba(0, 0, 0, 0.6),
    /* Deep drop shadow */
    0px 2px 0px rgba(255, 255, 255, 0.2);
  /* Top highlight */
  position: relative;
  z-index: 2;
}

/* Stats and numbers - Glowing bevel */
.stat-number {
  color: var(--ham-gold) !important;
  font-weight: 700;
  text-shadow:
    2px 2px 0px rgba(45, 80, 22, 0.8),
    /* Green shadow */
    3px 3px 6px rgba(0, 0, 0, 0.4),
    /* Drop shadow */
    0px 0px 15px rgba(255, 215, 0, 0.6),
    /* Gold glow */
    1px 1px 0px rgba(255, 255, 255, 0.3);
  /* Highlight */
}

/* Feature card titles - Premium effect */
.feature-card h4,
.feature-card h5,
.feature-card h6 {
  color: var(--ham-green-primary);
  text-shadow:
    1px 1px 0px var(--ham-gold),
    /* Gold highlight */
    2px 2px 2px rgba(0, 0, 0, 0.2),
    /* Shadow */
    0px 1px 0px rgba(255, 255, 255, 0.8);
  /* Top highlight */
}

/* Badge and label text - Embossed */
.badge,
.license-badge,
.guest-badge {
  text-shadow:
    0px 1px 1px rgba(0, 0, 0, 0.5),
    /* Embossed effect */
    0px -1px 0px rgba(255, 255, 255, 0.2);
  /* Highlight */
  font-weight: 600;
}

/* Alert text - Clear and visible */
.alert {
  text-shadow:
    0px 1px 0px rgba(255, 255, 255, 0.5);
  /* Subtle highlight */
}

/* Dropdown text - Professional */
.dropdown-header {
  color: var(--ham-green-primary);
  font-weight: 600;
  text-shadow:
    1px 1px 0px rgba(255, 255, 255, 0.8),
    /* White highlight */
    1px 1px 1px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
}

/* Table headers - Structured look */
th,
.table th {
  color: var(--ham-green-primary);
  font-weight: 600;
  text-shadow:
    0px 1px 0px rgba(255, 255, 255, 0.7),
    /* Highlight */
    1px 1px 1px rgba(0, 0, 0, 0.1);
  /* Shadow */
}

/* Footer text - Subtle effects */
footer h5,
footer h6 {
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8),
    /* Strong shadow for contrast */
    0px 1px 0px rgba(255, 255, 255, 0.1);
  /* Subtle highlight */
}

/* ENHANCED HOVER EFFECTS */

.btn:hover {
  text-shadow:
    0px 2px 0px rgba(0, 0, 0, 0.4),
    /* Enhanced shadow */
    0px -1px 0px rgba(255, 255, 255, 0.3),
    /* Brighter highlight */
    0px 0px 10px rgba(255, 215, 0, 0.3);
  /* Gold glow */
  transform: translateY(-2px);
}

.navbar-nav .nav-link:hover {
  color: var(--ham-gold) !important;
  text-shadow:
    2px 2px 2px rgba(0, 0, 0, 0.6),
    /* Enhanced shadow */
    0px 0px 8px rgba(255, 215, 0, 0.8),
    /* Gold glow */
    1px 1px 0px rgba(255, 255, 255, 0.2);
  /* Highlight */
  transform: translateY(-2px);
}

.card:hover .card-title {
  text-shadow:
    1px 1px 0px var(--ham-gold),
    /* Enhanced gold */
    2px 2px 3px rgba(0, 0, 0, 0.3),
    /* Deeper shadow */
    0px 0px 5px rgba(255, 215, 0, 0.4);
  /* Subtle glow */
}

/* RESPONSIVE TEXT EFFECTS */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    text-shadow:
      1px 1px 0px var(--ham-gold),
      2px 2px 0px rgba(45, 80, 22, 0.8),
      3px 3px 5px rgba(0, 0, 0, 0.6);
  }

  h1,
  h2,
  h3 {
    text-shadow:
      1px 1px 0px rgba(255, 215, 0, 0.6),
      1px 1px 2px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
    text-shadow:
      1px 1px 0px var(--ham-gold),
      2px 2px 3px rgba(0, 0, 0, 0.6);
  }
}

/* ============================================================================
   NAVIGATION - Green Theme (Additional Styles)
   ============================================================================ */

.navbar {
  background: linear-gradient(135deg, var(--ham-green-primary) 0%, var(--ham-green-secondary) 100%) !important;
  box-shadow: 0 2px 10px rgba(45, 80, 22, 0.3);
  border-bottom: 2px solid var(--ham-gold);
}

.navbar-brand i {
  color: var(--ham-gold) !important;
  margin-right: 8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link.active {
  color: var(--ham-gold) !important;
  font-weight: 600;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--ham-gold);
  border-radius: 2px;
}

/* ============================================================================
   BUTTONS - Green Theme
   ============================================================================ */

.btn-primary {
  background: linear-gradient(135deg, var(--ham-green-primary), var(--ham-green-secondary));
  border-color: var(--ham-green-primary);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 80, 22, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--ham-green-secondary), var(--ham-green-light));
  border-color: var(--ham-green-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, var(--ham-gold), var(--ham-gold-dark));
  border-color: var(--ham-gold);
  color: var(--ham-green-primary);
  font-weight: 600;
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--ham-gold-dark), var(--ham-gold));
  border-color: var(--ham-gold-dark);
  color: var(--ham-green-primary);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #28a745, #20c997);
  border-color: #28a745;
}

.btn-outline-primary {
  border-color: var(--ham-green-primary);
  color: var(--ham-green-primary);
}

.btn-outline-primary:hover {
  background-color: var(--ham-green-primary);
  border-color: var(--ham-green-primary);
  color: white;
}

/* ============================================================================
   CARDS AND CONTAINERS
   ============================================================================ */

.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--ham-green-light), var(--ham-green-lighter));
  border-bottom: 2px solid var(--ham-gold);
  color: var(--ham-green-primary);
  font-weight: 600;
}

.card-title {
  color: var(--ham-green-primary);
  font-weight: 600;
}

/* ============================================================================
   HERO SECTIONS
   ============================================================================ */

.hero-section {
  background: linear-gradient(135deg, var(--ham-green-primary) 0%, var(--ham-green-secondary) 50%, var(--ham-green-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,215,0,0.1)"/></svg>') repeat;
  background-size: 50px 50px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

/* ============================================================================
   FORMS - Green Theme - FIXED TEXT VISIBILITY
   ============================================================================ */

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
  color: var(--ham-green-primary);
  /* Dark green text for visibility */
}

.form-control:focus {
  border-color: var(--ham-green-primary);
  box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
  background-color: #ffffff;
  color: var(--ham-green-primary);
  /* Ensure text stays visible on focus */
}

.form-control::placeholder {
  color: rgba(45, 80, 22, 0.6);
  /* Lighter green for placeholder */
  opacity: 1;
}

/* Input text color for all states */
.form-control,
.form-control:focus,
.form-control:active,
.form-control:hover {
  color: var(--ham-green-primary) !important;
}

/* Select dropdown text */
.form-select {
  background-color: #ffffff;
  color: var(--ham-green-primary) !important;
  border: 2px solid #e9ecef;
}

.form-select:focus {
  border-color: var(--ham-green-primary);
  box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
  color: var(--ham-green-primary) !important;
}

/* Textarea */
textarea.form-control {
  background-color: #ffffff;
  color: var(--ham-green-primary) !important;
}

/* Input groups */
.input-group-text {
  background-color: var(--ham-green-light);
  border-color: var(--ham-green-primary);
  color: var(--ham-green-primary);
  font-weight: 600;
}

/* Form validation styles */
.form-control.is-valid {
  border-color: var(--bs-success);
  color: var(--ham-green-primary) !important;
}

.form-control.is-invalid {
  border-color: var(--bs-danger);
  color: var(--ham-green-primary) !important;
}

/* Dark theme form adjustments */
[data-bs-theme="dark"] .form-control {
  background-color: rgba(74, 124, 89, 0.1);
  border-color: rgba(74, 124, 89, 0.3);
  color: #e9ecef !important;
}

[data-bs-theme="dark"] .form-control:focus {
  background-color: rgba(74, 124, 89, 0.15);
  border-color: var(--bs-primary);
  color: #e9ecef !important;
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: rgba(233, 236, 239, 0.6);
}

.form-label {
  color: var(--ham-green-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ============================================================================
   AUTHENTICATION CONTAINERS
   ============================================================================ */

.auth-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(45, 80, 22, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.auth-tabs {
  display: flex;
  margin-bottom: 30px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid rgba(45, 80, 22, 0.1);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--ham-green-primary);
  font-weight: 500;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--ham-green-primary), var(--ham-green-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

/* ============================================================================
   FEATURE CARDS
   ============================================================================ */

.feature-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border-top: 4px solid var(--ham-green-light);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.2);
  border-top-color: var(--ham-gold);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--ham-green-primary), var(--ham-green-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

/* ============================================================================
   PROGRESS BARS AND STATISTICS
   ============================================================================ */

.progress-bar {
  background: linear-gradient(90deg, var(--ham-green-primary), var(--ham-green-light));
  transition: width 0.6s ease;
}

.stat-number {
  color: var(--ham-gold);
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================================
   ALERTS - Green Theme
   ============================================================================ */

.alert {
  border-radius: 12px;
  border: none;
  padding: 15px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border-left: 4px solid var(--bs-success);
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
  border-left: 4px solid var(--ham-gold);
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-left: 4px solid var(--bs-danger);
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  color: #0c5460;
  border-left: 4px solid var(--bs-info);
}

/* ============================================================================
   DROPDOWNS
   ============================================================================ */

.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.2);
  border-top: 3px solid var(--ham-gold);
}

.dropdown-item {
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: rgba(45, 80, 22, 0.1);
  color: var(--ham-green-primary);
  padding-left: 25px;
}

.dropdown-header {
  color: var(--ham-green-primary);
  font-weight: 600;
}

/* ============================================================================
   USER AVATAR AND BADGES
   ============================================================================ */

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ham-green-primary), var(--ham-green-secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 8px;
  box-shadow: 0 2px 8px rgba(45, 80, 22, 0.3);
}

.guest-badge {
  background: linear-gradient(135deg, var(--ham-gold), var(--ham-gold-dark));
  color: var(--ham-green-primary);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* ============================================================================
   PROGRESS INDICATOR
   ============================================================================ */

.progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--ham-green-primary), var(--ham-gold));
  z-index: 9999;
  transition: width 0.3s ease;
}

/* ============================================================================
   STUDY INTERFACE SPECIFIC
   ============================================================================ */

.study-card {
  border: 2px solid var(--ham-green-light);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.study-card:hover {
  border-color: var(--ham-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(45, 80, 22, 0.2);
}

.license-badge {
  background: linear-gradient(135deg, var(--ham-green-primary), var(--ham-green-secondary));
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(45, 80, 22, 0.3);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .auth-container {
    margin: 20px;
    padding: 30px 20px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .feature-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

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

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--ham-gold);
  outline-offset: 2px;
}

/* ============================================================================
   CUSTOM UTILITIES
   ============================================================================ */

.text-ham-green {
  color: var(--ham-green-primary) !important;
}

.text-ham-gold {
  color: var(--ham-gold) !important;
}

.bg-ham-green {
  background-color: var(--ham-green-primary) !important;
  color: white !important;
}

.bg-ham-gold {
  background-color: var(--ham-gold) !important;
  color: var(--ham-green-primary) !important;
}

.border-ham-green {
  border-color: var(--ham-green-primary) !important;
}

.border-ham-gold {
  border-color: var(--ham-gold) !important;
}

/* Gradient utilities */
.bg-gradient-green {
  background: linear-gradient(135deg, var(--ham-green-primary), var(--ham-green-secondary)) !important;
  color: white !important;
}

.bg-gradient-gold {
  background: linear-gradient(135deg, var(--ham-gold), var(--ham-gold-dark)) !important;
  color: var(--ham-green-primary) !important;
}

/* ========================================
   ENHANCED THEME-AWARE TOAST SYSTEM
   ======================================== */

/* Base Toast Container - Theme Neutral */
.toast-container,
#toastContainer {
  z-index: 9999 !important;
  pointer-events: none;
  position: fixed;
  top: 20px;
  right: 20px;
}

/* Base Toast Styling - Adapts to theme */
.toast {
  min-width: 350px;
  max-width: 500px;
  border: none;
  border-radius: 10px;
  pointer-events: auto;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
}

/* Light Theme Toasts (Default) */
.toast {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.toast-header {
  border-radius: 10px 10px 0 0;
  font-weight: 600;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.toast-body {
  padding: 12px 16px;
  word-wrap: break-word;
  line-height: 1.4;
}

/* Light Theme Toast Types */
.toast.bg-success,
.toast.text-bg-success {
  background: linear-gradient(135deg, #198754, #20c997) !important;
  color: white !important;
}

.toast.bg-success .toast-header,
.toast.text-bg-success .toast-header {
  background: rgba(25, 135, 84, 0.95);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.bg-danger,
.toast.text-bg-danger {
  background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
  color: white !important;
}

.toast.bg-danger .toast-header,
.toast.text-bg-danger .toast-header {
  background: rgba(220, 53, 69, 0.95);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.bg-warning,
.toast.text-bg-warning {
  background: linear-gradient(135deg, var(--ham-gold), var(--ham-gold-dark)) !important;
  color: var(--ham-green-primary) !important;
}

.toast.bg-warning .toast-header,
.toast.text-bg-warning .toast-header {
  background: rgba(255, 215, 0, 0.95);
  color: var(--ham-green-primary);
  border-bottom: 1px solid rgba(45, 80, 22, 0.2);
}

.toast.bg-info,
.toast.text-bg-info {
  background: linear-gradient(135deg, #0dcaf0, #17a2b8) !important;
  color: white !important;
}

.toast.bg-info .toast-header,
.toast.text-bg-info .toast-header {
  background: rgba(13, 202, 240, 0.95);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* DARK THEME TOAST ADAPTATIONS */
[data-bs-theme="dark"] .toast,
body.dark-theme .toast,
.dark-mode .toast {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
}

[data-bs-theme="dark"] .toast-header,
body.dark-theme .toast-header,
.dark-mode .toast-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark Theme Success Toasts */
[data-bs-theme="dark"] .toast.bg-success,
[data-bs-theme="dark"] .toast.text-bg-success,
body.dark-theme .toast.bg-success,
body.dark-theme .toast.text-bg-success {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

[data-bs-theme="dark"] .toast.bg-success .toast-header,
[data-bs-theme="dark"] .toast.text-bg-success .toast-header,
body.dark-theme .toast.bg-success .toast-header,
body.dark-theme .toast.text-bg-success .toast-header {
  background: rgba(40, 167, 69, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Dark Theme Error Toasts */
[data-bs-theme="dark"] .toast.bg-danger,
[data-bs-theme="dark"] .toast.text-bg-danger,
body.dark-theme .toast.bg-danger,
body.dark-theme .toast.text-bg-danger {
  background: linear-gradient(135deg, #dc3545, #c82333) !important;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

[data-bs-theme="dark"] .toast.bg-danger .toast-header,
[data-bs-theme="dark"] .toast.text-bg-danger .toast-header,
body.dark-theme .toast.bg-danger .toast-header,
body.dark-theme .toast.text-bg-danger .toast-header {
  background: rgba(220, 53, 69, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Dark Theme Warning Toasts - Enhanced Ham Gold */
[data-bs-theme="dark"] .toast.bg-warning,
[data-bs-theme="dark"] .toast.text-bg-warning,
body.dark-theme .toast.bg-warning,
body.dark-theme .toast.text-bg-warning {
  background: linear-gradient(135deg, #ffcd39, var(--ham-gold)) !important;
  color: var(--ham-green-primary) !important;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

[data-bs-theme="dark"] .toast.bg-warning .toast-header,
[data-bs-theme="dark"] .toast.text-bg-warning .toast-header,
body.dark-theme .toast.bg-warning .toast-header,
body.dark-theme .toast.text-bg-warning .toast-header {
  background: rgba(255, 205, 57, 0.95);
  color: var(--ham-green-primary);
  border-bottom: 1px solid rgba(45, 80, 22, 0.3);
}

/* Dark Theme Info Toasts */
[data-bs-theme="dark"] .toast.bg-info,
[data-bs-theme="dark"] .toast.text-bg-info,
body.dark-theme .toast.bg-info,
body.dark-theme .toast.text-bg-info {
  background: linear-gradient(135deg, #17a2b8, #138496) !important;
  border: 1px solid rgba(23, 162, 184, 0.3);
}

[data-bs-theme="dark"] .toast.bg-info .toast-header,
[data-bs-theme="dark"] .toast.text-bg-info .toast-header,
body.dark-theme .toast.bg-info .toast-header,
body.dark-theme .toast.text-bg-info .toast-header {
  background: rgba(23, 162, 184, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* HAM RADIO THEMED CUSTOM TOASTS */
.toast.ham-success {
  background: linear-gradient(135deg, var(--ham-green-primary), var(--ham-green-secondary)) !important;
  color: white !important;
  border: 2px solid var(--ham-gold);
}

.toast.ham-success .toast-header {
  background: rgba(45, 80, 22, 0.95);
  color: var(--ham-gold);
  border-bottom: 1px solid var(--ham-gold);
}

.toast.ham-warning {
  background: linear-gradient(135deg, var(--ham-gold), var(--ham-gold-dark)) !important;
  color: var(--ham-green-primary) !important;
  border: 2px solid var(--ham-green-primary);
}

.toast.ham-warning .toast-header {
  background: rgba(255, 215, 0, 0.95);
  color: var(--ham-green-primary);
  border-bottom: 1px solid var(--ham-green-primary);
}

/* Enhanced Close Button for All Themes */
.toast .btn-close {
  transition: all 0.2s ease;
  opacity: 0.8;
}

.toast .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Light theme close buttons */
.toast.bg-success .btn-close,
.toast.bg-danger .btn-close,
.toast.bg-info .btn-close {
  filter: invert(1);
}

.toast.bg-warning .btn-close {
  filter: none;
}

/* Dark theme close buttons */
[data-bs-theme="dark"] .toast .btn-close,
body.dark-theme .toast .btn-close {
  filter: invert(1);
}

[data-bs-theme="dark"] .toast.bg-warning .btn-close,
body.dark-theme .toast.bg-warning .btn-close {
  filter: none;
}

/* Toast Icons with Theme Awareness */
.toast-icon {
  font-size: 1.2rem;
  margin-right: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .toast-icon,
body.dark-theme .toast-icon {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Toast Animations Enhanced */
.toast-slide-in {
  animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-slide-out {
  animation: toastSlideOut 0.3s ease-in;
}

/* Theme Transition Animations */
.toast {
  transition: all 0.3s ease;
}

/* Responsive Enhancements */
@media (max-width: 768px) {

  .toast-container,
  #toastContainer {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    transform: none !important;
    width: calc(100% - 20px);
  }

  .toast {
    min-width: auto;
    width: 100%;
    max-width: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .toast {
    border: 2px solid currentColor !important;
  }

  .toast-header {
    border-bottom: 2px solid currentColor !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

  .toast-slide-in,
  .toast-slide-out {
    animation: none !important;
  }

  .toast {
    transition: none !important;
  }
}