/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-attachment: fixed !important;
    color: white !important;
    padding: 1.25rem 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15), 0 -2px 16px rgba(102, 126, 234, 0.1) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: slideUpFade 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

@keyframes slideUpFade {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-consent-text h5 {
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cookie-consent-text p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1;
    font-size: 0.925rem;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Modern button styles for cookie consent */
.btn-modern-outline {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    backdrop-filter: blur(10px) !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
}

.btn-modern-outline:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-modern-light {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    color: #4a5568 !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
}

.btn-modern-light:hover {
    background: white !important;
    border-color: white !important;
    color: #2d3748 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #48bb78, #38a169) !important;
    border: 2px solid transparent !important;
    color: white !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-modern-primary:hover {
    background: linear-gradient(135deg, #38a169, #2f855a) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4) !important;
}

.btn-modern-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.cookie-category {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.category-header {
    margin-bottom: 0.75rem;
}

.category-description {
    margin-left: 2.5rem;
}

.cookie-examples {
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1040;
}

/* Ensure modal appears above everything including search bars */
#cookieSettingsModal {
    z-index: 10000 !important;
}

#cookieSettingsModal .modal-dialog {
    z-index: 10001 !important;
}

#cookieSettingsModal .modal-backdrop {
    z-index: 9999 !important;
}

.form-switch .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-switch .form-check-input:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1.5rem 0 !important;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    
    .cookie-consent-text h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.875rem;
    }
    
    .cookie-consent-actions {
        justify-content: center;
        width: 100%;
        gap: 0.5rem;
    }
    
    .btn-modern-outline,
    .btn-modern-light,
    .btn-modern-primary {
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
        min-width: 90px;
    }
    
    .category-description {
        margin-left: 0;
    }
}

/* Dark mode improvements */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
}