/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Custom styles for Devise authentication pages */
.auth-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

/* Settings page specific styles */
.auth-card.settings-card {
  min-width: 500px;
}

@media (max-width: 768px) {
  .auth-card.settings-card {
    min-width: auto;
  }
}

.auth-card .card-body {
  padding: 2rem;
}

.auth-card .form-control {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.auth-card .form-control:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.auth-card .btn-primary {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  background: linear-gradient(45deg, #ffc107, #ffca2c);
  border: none;
  color: #000;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.auth-card .btn-primary:hover {
  background: linear-gradient(45deg, #ffca2c, #ffc107);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.auth-card .btn-warning {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  background: linear-gradient(45deg, #ffc107, #ffca2c);
  border: none;
  color: #000;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.auth-card .btn-warning:hover {
  background: linear-gradient(45deg, #ffca2c, #ffc107);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.auth-card .form-check-input:checked {
  background-color: #ffc107;
  border-color: #ffc107;
}

.auth-card .btn-outline-primary,
.auth-card .btn-outline-secondary {
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border: 2px solid #ffc107;
  color: #ffc107;
  background: transparent;
  transition: all 0.3s ease;
}

.auth-card .btn-outline-primary:hover,
.auth-card .btn-outline-secondary:hover {
  background-color: #ffc107;
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}



.auth-card .btn-outline-warning {
  border: 2px solid #ffc107;
  color: #ffc107;
  background: transparent;
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
}

.auth-card .btn-outline-warning:hover {
  background-color: #ffc107;
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.auth-card .text-decoration-none {
  color: #6c757d;
  transition: color 0.15s ease-in-out;
}

.auth-card .text-decoration-none:hover {
  color: #ffc107;
}

/* Beacon Racing Navbar Styles */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

.navbar-brand {
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  opacity: 0.9;
}

.brand-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

.navbar-nav .nav-link {
  transition: all 0.2s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: #ffc107 !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #ffc107;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Dropdown Styling */
.dropdown-menu {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid #ffc107 !important;
  display: none;
  position: absolute;
  z-index: 1000;
  min-width: 200px;
  margin-top: 0.125rem;
}

.dropdown-menu.show {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}

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

.nav-item.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  color: #ffc107;
}

.dropdown-item {
  transition: all 0.2s ease;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  text-decoration: none;
  display: block;
  user-select: none;
}

.dropdown-item:active {
  transform: scale(0.98);
}

.dropdown-item:hover {
  background-color: #ffc107 !important;
  color: #000 !important;
  text-decoration: none;
}

.dropdown-item:focus {
  background-color: #ffc107 !important;
  color: #000 !important;
  outline: none;
  box-shadow: none;
}

.dropdown-divider {
  border-color: #ffc107 !important;
  opacity: 0.5;
}

/* Field_with_errors inline to prevent layout changes */
div.field_with_errors {
  display: inline-block;
}

/* Button Enhancements */
.btn-warning {
  background: linear-gradient(45deg, #ffc107, #ffca2c);
  border: none;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background: linear-gradient(45deg, #ffca2c, #ffc107);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-outline-warning {
  border: 2px solid #ffc107;
  color: #ffc107;
  transition: all 0.3s ease;
}

.btn-outline-warning:hover {
  background-color: #ffc107;
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Active State Styling */
.btn-warning.active,
.btn-warning:active {
  background: linear-gradient(45deg, #ffca2c, #ffc107);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3), 0 4px 15px rgba(255, 193, 7, 0.4);
  transform: scale(0.98);
}

.btn-outline-warning.active,
.btn-outline-warning:active {
  background-color: #ffc107;
  color: #000;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
  transform: scale(0.98);
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .dropdown-menu {
    position: static !important;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }
  
  .dropdown-menu.show {
    display: block;
    animation: none;
  }
  
  .dropdown-item {
    padding: 0.5rem 1rem;
    color: #ffc107 !important;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
  }
  
  .dropdown-item:hover {
    background-color: transparent !important;
    color: #fff !important;
  }
  
  .dropdown-item:last-child {
    border-bottom: none;
  }
}

/* Racing Theme Accents */
.border-primary {
  border-color: #ffc107 !important;
}

.text-warning {
  color: #ffc107 !important;
}

/* Hover Effects for Interactive Elements */
.hover-bg-primary:hover {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.hover-bg-danger:hover {
  background-color: #dc3545 !important;
  color: #fff !important;
}

/* Ensure button_to forms in dropdowns look like regular dropdown items */
.dropdown-item button {
  background: transparent;
  border: none;
  color: inherit;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: inherit;
  font-family: inherit;
}

.dropdown-item button:hover {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.dropdown-item button:focus {
  background-color: #ffc107 !important;
  color: #000 !important;
  outline: none;
  box-shadow: none;
}

/* Body Background Pattern */
body {
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 193, 7, 0.02) 0%, transparent 50%),
    linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Enhanced Card Styling for Racing Theme */
.card {
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Racing-themed button variations */
.btn-racing {
  background: linear-gradient(45deg, #ffc107, #ffca2c);
  border: none;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  transition: all 0.3s ease;
}

.btn-racing:hover {
  background: linear-gradient(45deg, #ffca2c, #ffc107);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  color: #000;
}

/* Override any remaining Bootstrap default blue colors */
.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:hover {
  background: linear-gradient(45deg, #ffc107, #ffca2c) !important;
  border-color: #ffc107 !important;
  color: #000 !important;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3) !important;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #ffca2c, #ffc107) !important;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
}

/* Override any Bootstrap outline button defaults */
.btn-outline-primary,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:hover {
  border-color: #ffc107 !important;
  color: #ffc107 !important;
}

.btn-outline-primary:hover {
  background-color: #ffc107 !important;
  color: #000 !important;
}

/* Ensure all form elements use yellow theme */
.form-control:focus {
  border-color: #ffc107 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
}

/* Override any remaining blue text colors */
.text-primary {
  color: #ffc107 !important;
}

/* Override any remaining blue border colors */
.border-primary {
  border-color: #ffc107 !important;
}

/* Page Title Helper Styles */
.page-title-container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 193, 7, 0.2);
  margin-bottom: 0.5rem;
}

.page-title-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #6c757d;
  margin: 0;
}

.page-title-container .fas {
  font-size: 2rem;
}

/* Responsive adjustments for page titles */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .page-title-container {
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
  }
  
  .page-title-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .page-title-header .fas {
    margin-bottom: 0.5rem;
    margin-right: 0 !important;
  }
}

/* Enhanced Breadcrumb Styling */
.breadcrumbs-container {
  background: 
    linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%),
    radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.06) 0%, transparent 50%);
  border: 1px solid #e1e5e9;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  margin-bottom: 0.75rem;
  margin-top: -2px;
}

.breadcrumbs-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffc107, #ffca2c);
  box-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

.breadcrumbs {
  padding: 0.75rem 0;
  position: relative;
}

/* Force override any default Gretel styling */
.breadcrumbs a,
.breadcrumbs .breadcrumb-link,
.breadcrumbs .link {
  color: #d97706 !important;
  text-decoration: none !important;
}

/* Ensure all breadcrumb links use our theme */
.breadcrumbs a:link,
.breadcrumbs a:visited,
.breadcrumbs a:hover,
.breadcrumbs a:active {
  color: #d97706 !important;
  text-decoration: none !important;
}

/* Style the separators */
.breadcrumbs .separator,
.breadcrumbs > span:not(:last-child),
.breadcrumbs > * > span:not(:last-child) {
  color: #9ca3af !important;
  margin: 0 0.25rem;
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Force override any remaining blue links */
.breadcrumbs a[href],
.breadcrumbs a[href]:link,
.breadcrumbs a[href]:visited,
.breadcrumbs a[href]:hover,
.breadcrumbs a[href]:active {
  color: #d97706 !important;
  text-decoration: none !important;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.breadcrumb-link {
  color: #d97706;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.03) 100%);
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d97706, #b45309);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.breadcrumb-link:hover {
  color: #b45309;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
  border-color: rgba(255, 193, 7, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.breadcrumb-link:hover::before {
  width: 100%;
}

.breadcrumb-link:hover {
  color: #b45309;
  background-color: rgba(255, 193, 7, 0.1);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #6c757d;
  margin: 0 0.25rem;
  font-weight: 400;
  font-size: 1.1rem;
  opacity: 0.7;
  position: relative;
  top: -1px;
}

.breadcrumb-current {
  color: #2d2d2d;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
  border-radius: 6px;
  border-left: 4px solid #ffc107;
  position: relative;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Responsive breadcrumb adjustments */
@media (max-width: 768px) {
  .breadcrumbs-container {
    margin-bottom: 1.5rem;
  }
  
  .breadcrumbs {
    padding: 1rem 0;
  }
  
  .breadcrumb-link,
  .breadcrumb-current {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
  
  .breadcrumb-separator {
    margin: 0 0.2rem;
    font-size: 1rem;
  }
  
  .breadcrumb-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .breadcrumb-item {
    margin-bottom: 0.2rem;
  }
}

/* Bib Groups Page Styles */
.bib-groups-container {
  width: 100%;
  margin: 0;
}

.bib-group-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.bib-group-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.bib-group-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
}

.bib-group-info {
  flex: 1;
}

.bib-group-name {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d2d2d;
}

.bib-group-range {
  margin: 0;
  font-size: 1.1rem;
  color: #6c757d;
  font-weight: 500;
}

.bib-group-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.bib-group-content {
  padding: 1.5rem;
}

.bib-group-content .table {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.bib-group-content .table th {
  background: #f8f9fa;
  border-color: #dee2e6;
  font-weight: 600;
  color: #495057;
  padding: 1rem;
}

.bib-group-content .table td {
  padding: 1rem;
  border-color: #dee2e6;
  vertical-align: middle;
}

.bib-group-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #dee2e6;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive adjustments for bib groups */
@media (max-width: 768px) {
  .bib-group-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .bib-group-actions {
    justify-content: flex-start;
  }
  
  .bib-group-name {
    font-size: 1.5rem;
  }
  
  .bib-group-content {
    padding: 1rem;
  }
  
  .bib-group-content .table th,
  .bib-group-content .table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

/* Ensure flash messages don't show as Bootstrap alerts */
.flash-message {
  display: none !important;
}

/* Bootstrap Toast Enhancements */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  margin-bottom: 15px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  min-width: 350px;
  max-width: 450px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  animation: slideInRight 0.2s ease-out;
}

.toast-header {
  border-bottom: none;
  padding: 16px 20px 12px 20px;
  background: transparent;
  font-weight: 600;
}

.toast-body {
  padding: 0 20px 20px 20px;
  font-weight: 500;
  line-height: 1.5;
}

/* Toast type-specific styling with enhanced colors and better text contrast */
.toast.bg-success {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
}

.toast.bg-success .toast-header {
  color: #065f46 !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.toast.bg-success .toast-body {
  color: white !important;
}

.toast.bg-danger {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
}

.toast.bg-danger .toast-header {
  color: #991b1b !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.toast.bg-danger .toast-body {
  color: white !important;
}

.toast.bg-warning {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
}

.toast.bg-warning .toast-header {
  color: #92400e !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.toast.bg-warning .toast-body {
  color: white !important;
}

.toast.bg-info {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
}

.toast.bg-info .toast-header {
  color: #1e40af !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.toast.bg-info .toast-body {
  color: white !important;
}

/* Enhanced close button with better contrast */
.btn-close {
  opacity: 0.9;
  transition: all 0.2s ease;
  filter: brightness(0) invert(1);
}

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

/* Toast entrance animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Toast exit animation */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Apply animations */
.toast {
  margin-bottom: 15px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  min-width: 350px;
  max-width: 450px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  animation: slideInRight 0.2s ease-out;
}

.toast.fade-out {
  animation: fadeOut 0.4s ease-in forwards;
}

/* Toast hover effects */
.toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Toast icon styling */
.toast-header .fas {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .toast-container {
    top: 15px;
    right: 15px;
    left: 15px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
    margin-bottom: 12px;
  }
}

/* Toast type-specific styling with enhanced colors and better text contrast */
.toast.bg-success {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
}

.toast.bg-success .toast-header {
  color: #065f46 !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.toast.bg-success .toast-body {
  color: white !important;
}

.toast.bg-danger {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
}

.toast.bg-danger .toast-header {
  color: #991b1b !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.missing-group {
  background-color: #FF0000 !important;
  --bs-table-bg:  #FF0000 !important;
}
