/* Custom styles for GMB Audit System */
/* Mobile-First Responsive Design with Cross-Browser Compatibility */

/* CSS Custom Properties for Enhanced Mobile Experience */
:root {
  /* Touch-friendly sizes */
  --touch-target-min: 44px;
  --touch-spacing: 16px;
  --mobile-padding: 16px;
  --desktop-padding: 24px;
  
  /* Responsive typography */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  
  /* Mobile-optimized spacing */
  --spacing-xs: 0.25rem;  /* 4px */
  --spacing-sm: 0.5rem;   /* 8px */
  --spacing-md: 1rem;     /* 16px */
  --spacing-lg: 1.5rem;   /* 24px */
  --spacing-xl: 2rem;     /* 32px */
  --spacing-2xl: 2.5rem;  /* 40px */
  --spacing-3xl: 3rem;    /* 48px */
  
  /* Cross-browser safe shadow and blur values */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  
  /* Mobile-optimized blur values */
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 16px;
  --blur-xl: 24px;
}

/* Base Reset for Cross-Browser Compatibility */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Enhanced scrolling behavior for mobile */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Sticky Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background-color: rgba(30, 30, 30, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Navbar Text Colors - Light text on dark background */
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-toggler-icon,
.navbar .brand-text,
.navbar .nav-text {
  color: rgba(255, 255, 255, 0.95) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: rgba(255, 255, 255, 1) !important;
}

.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus {
  color: rgba(255, 255, 255, 1) !important;
}

/* Navbar icons - light colored */
.navbar svg,
.navbar i[data-feather] {
  stroke: rgba(255, 255, 255, 0.95);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Recommendation items */
.recommendation-item {
    transition: transform 0.2s ease-in-out;
}

.recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Card improvements */
.card {
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Form improvements */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Footer */
footer {
    background-color: var(--bs-dark);
    border-top: 1px solid var(--bs-border-color);
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Button improvements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Badge improvements */
.badge {
    font-weight: 500;
}

/* Table improvements */
.table {
    margin-bottom: 0;
}

.table th {
    border-bottom: 2px solid var(--bs-border-color);
    font-weight: 600;
}

/* ================================================================
   MOBILE-FIRST RESPONSIVE DESIGN
   ================================================================ */

/* Extra Small devices (phones, 320px and up) */
@media (min-width: 320px) {
    .container-fluid {
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
    }
    
    /* Touch-friendly button sizes */
    .btn {
        min-height: var(--touch-target-min);
        padding: 12px 16px;
        font-size: var(--font-size-base);
    }
    
    .btn-lg {
        min-height: 56px;
        padding: 16px 24px;
        font-size: var(--font-size-lg);
    }
    
    /* Mobile typography */
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2rem; }
    .display-3 { font-size: 1.75rem; }
    .display-4 { font-size: 1.5rem; }
    .display-5 { font-size: 1.25rem; }
    .display-6 { font-size: 1.125rem; }
    
    /* Mobile spacing */
    .recommendation-item {
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    /* Enhanced touch targets */
    .nav-link {
        min-height: var(--touch-target-min);
        padding: 12px 16px;
    }
    
    /* Mobile-optimized cards */
    .card {
        margin-bottom: var(--spacing-lg);
        border-radius: 12px;
    }
    
    /* Mobile form elements */
    .form-control {
        min-height: var(--touch-target-min);
        padding: 12px 16px;
        font-size: var(--font-size-base);
    }
    
    .form-select {
        min-height: var(--touch-target-min);
        padding: 12px 16px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
    }
    
    .display-1 { font-size: 3rem; }
    .display-2 { font-size: 2.5rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.75rem; }
    
    .btn-lg {
        padding: 18px 28px;
        font-size: var(--font-size-xl);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        padding-left: var(--desktop-padding);
        padding-right: var(--desktop-padding);
    }
    
    .display-1 { font-size: 4rem; }
    .display-2 { font-size: 3.5rem; }
    .display-3 { font-size: 2.75rem; }
    .display-4 { font-size: 2.25rem; }
    .display-5 { font-size: 1.75rem; }
    .display-6 { font-size: 1.5rem; }
    
    /* Tablet spacing */
    .recommendation-item {
        margin-bottom: var(--spacing-lg);
        padding: var(--spacing-lg);
    }
    
    /* Hover effects for non-touch devices */
    .recommendation-item:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .card:hover {
        box-shadow: var(--shadow-xl);
        transform: translateY(-1px);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .display-1 { font-size: 5rem; }
    .display-2 { font-size: 4.5rem; }
    .display-3 { font-size: 3.5rem; }
    .display-4 { font-size: 2.75rem; }
    
    /* Desktop spacing */
    .recommendation-item {
        padding: var(--spacing-xl);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .display-1 { font-size: 5.5rem; }
    .display-2 { font-size: 5rem; }
    .display-3 { font-size: 4rem; }
    .display-4 { font-size: 3rem; }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Animation for feather icons */
[data-feather] {
    transition: transform 0.2s ease-in-out;
}

.card-header [data-feather]:hover {
    transform: scale(1.1);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

/* Score circle animation */
@keyframes scoreAnimation {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.score-card {
    animation: scoreAnimation 0.5s ease-out;
}

/* Stylish Language Toggle with Glassmorphism */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 4px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.7);
    min-width: 48px;
    height: 36px;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.lang-btn:hover {
    transform: scale(1.05);
    color: rgba(255, 255, 255, 0.9);
}

.lang-btn:hover::before {
    opacity: 1;
}

.lang-btn.active {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.15) 100%);
    color: #fff;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.lang-btn.active:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.lang-text {
    position: relative;
    z-index: 3;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Navbar styling adjustments for language toggle */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================================================================
   ENHANCED CROSS-BROWSER GLASSMORPHISM
   ================================================================ */

/* Cross-browser glassmorphism support */
.glassmorphism {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    -moz-backdrop-filter: blur(var(--blur-lg));
    -ms-backdrop-filter: blur(var(--blur-lg));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glassmorphism-dark {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    -moz-backdrop-filter: blur(var(--blur-lg));
    -ms-backdrop-filter: blur(var(--blur-lg));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Language Toggle with Mobile-First Design */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 4px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    /* Touch-friendly minimum size */
    min-height: var(--touch-target-min);
}

/* Mobile-first responsive design for language toggle */
@media (max-width: 480px) {
    .language-toggle {
        padding: 3px;
        border-radius: 20px;
        min-height: 40px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: var(--font-size-xs);
        min-width: 36px;
        height: 32px;
        min-height: 32px;
    }
    
    .navbar .container {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--mobile-padding);
    }
    
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .language-toggle {
        padding: 3px;
        border-radius: 22px;
    }
    
    .lang-btn {
        padding: 8px 14px;
        font-size: var(--font-size-sm);
        min-width: 42px;
        height: 36px;
    }
    
    .navbar .container {
        gap: var(--spacing-md);
    }
}

@media (min-width: 769px) {
    .language-toggle {
        padding: 4px;
    }
    
    .lang-btn {
        padding: 8px 16px;
        font-size: var(--font-size-sm);
        min-width: 48px;
        height: 36px;
    }
    
    /* Hover effects for desktop */
    .language-toggle:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Dark theme optimizations */
.navbar {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

/* ================================================================
   TOUCH-FRIENDLY FORM ENHANCEMENTS
   ================================================================ */

/* Enhanced form controls for mobile */
.form-control {
    min-height: var(--touch-target-min);
    padding: 12px 16px;
    font-size: var(--font-size-base);
    border-radius: 8px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
    outline: none;
    transform: translateY(-1px);
}

/* Mobile-optimized select elements */
.form-select {
    min-height: var(--touch-target-min);
    padding: 12px 40px 12px 16px;
    font-size: var(--font-size-base);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
}

/* Touch-friendly checkboxes and radios */
.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.form-check-label {
    margin-left: var(--spacing-sm);
    font-size: var(--font-size-base);
    line-height: 1.5;
}

/* Enhanced button styling */
.btn {
    min-height: var(--touch-target-min);
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.btn:active {
    transform: scale(0.98);
}

/* Large buttons for primary actions */
.btn-lg {
    min-height: 56px;
    padding: 16px 32px;
    font-size: var(--font-size-lg);
    border-radius: 12px;
}

/* ================================================================
   MOBILE-OPTIMIZED CARDS AND COMPONENTS
   ================================================================ */

/* Enhanced card styling */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@media (min-width: 768px) {
    .card:hover {
        box-shadow: var(--shadow-xl);
        transform: translateY(-2px);
    }
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
}

.card-body {
    padding: var(--spacing-lg);
}

@media (max-width: 576px) {
    .card-body {
        padding: var(--spacing-md);
    }
}

/* Enhanced alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

/* Mobile-optimized table */
.table-responsive {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .table-responsive {
        font-size: var(--font-size-sm);
    }
    
    .table th,
    .table td {
        padding: var(--spacing-sm);
    }
}

/* ================================================================
   CROSS-BROWSER PERFORMANCE OPTIMIZATIONS
   ================================================================ */

/* GPU acceleration for smooth animations */
.gpu-accelerated {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Optimized transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 1px solid currentColor;
    }
}

/* ================================================================
   MOBILE ACCESSIBILITY ENHANCEMENTS
   ================================================================ */

/* Focus indicators for keyboard navigation */
.focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--bs-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================================
   UTILITY CLASSES FOR MOBILE DEVELOPMENT
   ================================================================ */

/* Mobile-specific display utilities */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
}

/* Touch-friendly spacing utilities */
.touch-spacing-y > * + * {
    margin-top: var(--touch-spacing);
}

.touch-spacing-x > * + * {
    margin-left: var(--touch-spacing);
}

/* Mobile-optimized text utilities */
.text-mobile-center {
    text-align: center;
}

@media (min-width: 768px) {
    .text-mobile-center {
        text-align: left;
    }
}

/* Safe area support for mobile devices with notches */
.safe-area-inset {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* ================================================================
   UX ENHANCEMENTS - ANIMATIONS & EFFECTS
   ================================================================ */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.loading-overlay.d-none {
    display: none !important;
}

/* Button Loading States */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Empty State Styling */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 auto 20px;
}

.empty-state h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

/* Enhanced Alert/Flash Messages */
.alert {
    border-left: 4px solid;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    animation: slideInDown 0.3s ease-out;
}

.alert i[data-feather] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success { 
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.alert-danger, .alert-error { 
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.alert-warning { 
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.alert-info { 
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Fade-in animations for cards */
.card {
    animation: fadeInUp 0.4s ease-out;
}

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

/* Slide in animation for alerts */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in animation for page content */
.page-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Enhanced button hover effects */
.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
}

/* Enhanced card hover effects */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    }
}

.card-custom {
    animation: fadeInUp 0.4s ease-out;
}

/* Progress bar color coding */
.progress {
    height: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease, background-color 0.3s ease;
    border-radius: 10px;
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.progress-bar.bg-warning {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

/* Table row hover effect */
.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
}

/* Smooth transitions for interactive elements */
a, button, input, select, textarea {
    transition: all 0.2s ease;
}

/* Stagger animation for list items */
.stagger-item {
    animation: fadeInUp 0.4s ease-out;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }

/* Pulse animation for loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Spin animation for loading spinners */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    animation: spin 0.75s linear infinite;
}

/* MOBILE LOGO ALIGNMENT & SIZING FIX - HIGHEST PRIORITY */
@media (max-width: 767px) {
  .hero-background > .nexum-logo {
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .hero-background > .nexum-logo > img.nexum-full-logo#parallax-logo {
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    /* Fix mobile sizing - much smaller */
    height: 120px !important;
    max-height: 120px !important;
    min-height: 80px !important;
    width: auto !important;
    max-width: 85% !important;
  }
  /* If a parent is centering via flex/grid, pin it to start on mobile */
  .hero-background { 
    justify-content: flex-start !important; 
    align-items: flex-start !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Align title text to match logo position */
  .hero-headline, .hero-subheadline { 
    text-align: left !important; 
    margin-left: 0 !important; 
    margin-right: auto !important; 
  }

  /* WAITLIST PAGE MOBILE LOGO - DOUBLE SIZE & CENTERED */
  #waitlist-hero-logo {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  #waitlist-logo,
  #waitlist-hero-logo img.nexum-full-logo {
    height: 240px !important;
    max-height: 240px !important;
    min-height: 160px !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
  }
}
