/* DMAIC Copilot - Modern Glass Theme */

/* Root variables for professional lean theme */
:root {
    --dmaic-primary: #1e3a8a;
    --dmaic-secondary: #475569;
    --dmaic-success: #065f46;
    --dmaic-info: #0c4a6e;
    --dmaic-warning: #92400e;
    --dmaic-danger: #991b1b;
    
    /* Professional glass theme colors */
    --glass-bg: rgba(30, 58, 138, 0.1);
    --glass-border: rgba(71, 85, 105, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.2);
    --glass-text: rgba(248, 250, 252, 0.95);
    --glass-accent: rgba(30, 58, 138, 0.8);
    
    /* Professional gradients */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    --gradient-secondary: linear-gradient(135deg, #475569 0%, #64748b 100%);
    --gradient-success: linear-gradient(135deg, #065f46 0%, #047857 100%);
    --gradient-info: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
    --gradient-warning: linear-gradient(135deg, #92400e 0%, #c2410c 100%);
    --gradient-danger: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
}

/* Body with professional animated gradient background */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background: linear-gradient(-45deg, #1e3a8a, #3730a3, #475569, #64748b);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;
    position: relative;
}



@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glass morphism cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--glass-shadow);
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-header {
    background: var(--gradient-primary);
    border: none;
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent, rgba(255,255,255,0.1));
    pointer-events: none;
}

.card-body {
    padding: 2rem;
    color: var(--glass-text);
}

/* Glass form styling */
.form-floating {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--glass-text);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--glass-accent);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.3), 0 8px 25px rgba(0, 0, 0, 0.1);
    color: white;
}

.form-floating > label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.form-text {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.875rem;
}

/* Modern button styling */
.btn {
    border-radius: 15px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent, rgba(255,255,255,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--glass-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 20px;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Glass badge styling */
.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.8em;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: var(--gradient-success);
    border-color: rgba(6, 95, 70, 0.4);
}

.badge.bg-warning {
    background: var(--gradient-warning);
    border-color: rgba(146, 64, 14, 0.4);
}

.badge.bg-danger {
    background: var(--gradient-danger);
    border-color: rgba(153, 27, 27, 0.4);
}

/* Glass chart containers */
.chart-container {
    position: relative;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Modern statistics cards */
.stat-card {
    background: var(--gradient-info);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent, rgba(255,255,255,0.1));
    pointer-events: none;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* DMAIC phase headers */
.phase-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem 0.5rem 0 0;
    color: white;
    font-weight: 600;
}

.phase-define {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.phase-measure {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.phase-analyze {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.phase-improve {
    background: linear-gradient(45deg, #27ae60, #229954);
}

.phase-control {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

/* Glass alert styling */
.alert {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    color: var(--glass-text);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.alert-info {
    border-left-color: rgba(12, 74, 110, 0.8);
}

.alert-info::before {
    background: var(--gradient-info);
}

.alert-success {
    border-left-color: rgba(6, 95, 70, 0.8);
}

.alert-success::before {
    background: var(--gradient-success);
}

.alert-warning {
    border-left-color: rgba(146, 64, 14, 0.8);
}

.alert-warning::before {
    background: var(--gradient-warning);
}

.alert-danger {
    border-left-color: rgba(153, 27, 27, 0.8);
}

.alert-danger::before {
    background: var(--gradient-danger);
}

/* Glass table styling */
.table {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--glass-text);
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1.25rem 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

.table tbody td {
    padding: 1rem;
    border: none;
    font-weight: 500;
}

/* Glass code styling */
code {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9em;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-weight: 500;
}

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

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

/* Glass typography */
h1, h2, h3, h4, h5, h6 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.display-4 {
    font-weight: 800;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary {
    color: #ffffff !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-secondary {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Container enhancements */
.container, .container-fluid {
    position: relative;
    z-index: 1;
}

/* Navigation and header glass effect */
.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1050;
    position: relative;
}

.dropdown {
    z-index: 10000 !important;
}

.dropdown-toggle {
    z-index: 10001 !important;
}

/* Dropdown menu styling */
.dropdown-menu {
    background: rgba(30, 58, 138, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
    z-index: 9999 !important;
    position: relative;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: translateX(5px);
}

.dropdown-item i {
    margin-right: 0.75rem;
    opacity: 0.8;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Mobile container centering */
    .container, .container-fluid {
        padding: 0.75rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Better mobile centering for all content */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-12, .col-md-6, .col-lg-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Mobile navigation centering */
    .navbar {
        padding: 0.75rem 1rem;
        margin: 0.5rem 0;
        border-radius: 15px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    /* Mobile card improvements */
    .card {
        margin-bottom: 1.5rem;
        border-radius: 15px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: none;
    }
    
    .card-body {
        padding: 1.25rem;
        text-align: center;
    }
    
    /* Mobile form centering */
    .form-floating {
        margin-bottom: 1.25rem;
    }
    
    .form-control, .form-select {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    /* Mobile button improvements */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 12px;
        width: auto;
        margin: 0.25rem auto;
        display: inline-block;
    }
    
    .btn-lg {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
        display: block;
    }
    
    /* Mobile hero section centering */
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Mobile stats centering */
    .stat-card {
        margin-bottom: 1.25rem;
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .stat-card h3 {
        font-size: 2.25rem;
    }
    
    /* Mobile typography centering */
    h1, h2, h3, h4, h5, h6 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .text-gradient {
        text-align: center;
        display: block;
    }
    
    /* Mobile background optimization */
    body {
        background-size: 600% 600%;
        padding: 0;
        margin: 0;
    }
    
    /* Mobile dropdown improvements */
    .dropdown-menu {
        left: 50% !important;
        transform: translateX(-50%);
        min-width: 200px;
        text-align: center;
    }
    
    /* Mobile alert centering */
    .alert {
        margin: 1rem auto;
        max-width: 100%;
        text-align: center;
    }
    
    /* Mobile table responsiveness */
    .table-responsive {
        margin: 1rem auto;
        border-radius: 12px;
    }
    
    /* Mobile upload area */
    .upload-area {
        padding: 2rem 1rem;
        text-align: center;
        margin: 1rem auto;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container, .container-fluid {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 10vw, 2.25rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

/* Print styles */
@media print {
    .btn, .alert-dismissible .btn-close {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Animation for charts */
.chart-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--bs-gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-600);
}

/* Modern Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-icon {
    position: relative;
    z-index: 2;
}

.icon-circle {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.icon-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent, rgba(255,255,255,0.2));
    pointer-events: none;
}

.icon-circle i {
    color: white;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #34d399, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-stats {
    margin: 2rem 0;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
}

.stat-pill:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta {
    margin-top: 2rem;
}

.btn-hero {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

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

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* Modern Form Card */
.modern-form-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modern-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981, #f59e0b);
    z-index: 2;
}

.modern-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Step Indicators */
.step-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-right: 1rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.form-progress {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Enhanced form controls */
.form-control:focus,
.form-select:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-floating > label {
    color: rgba(255, 255, 255, 0.7);
}

/* Enhanced file upload */
.form-control[type="file"] {
    padding: 1.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-control[type="file"]:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
}

/* Enhanced buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
}

/* Advanced glass effects and animations */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { 
        box-shadow: 0 0 30px rgba(30, 58, 138, 0.6), 0 0 60px rgba(30, 58, 138, 0.3);
        transform: scale(1);
    }
    to { 
        box-shadow: 0 0 50px rgba(60, 165, 250, 0.8), 0 0 100px rgba(60, 165, 250, 0.4);
        transform: scale(1.05);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Glass morphism for specific components */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Interactive elements enhancement */
.interactive-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Text selection styling */
::selection {
    background: rgba(30, 58, 138, 0.4);
    color: white;
}

::-moz-selection {
    background: rgba(30, 58, 138, 0.4);
    color: white;
}

/* Loading animation enhancement */
.spinner-border {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

/* Focus indicators for accessibility */
.form-control:focus,
.btn:focus {
    outline: 2px solid rgba(30, 58, 138, 0.6);
    outline-offset: 2px;
}

/* Enhanced dark theme integration */
[data-bs-theme="dark"] {
    color-scheme: dark;
}

[data-bs-theme="dark"] .chart-container {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .table {
    --bs-table-color: var(--glass-text);
    --bs-table-bg: transparent;
}
