/* GDPR Consent Enhancements for Equipment Manager Theme */

/* Ensure banner works well with fixed navigation */
#gdpr-consent-banner {
    z-index: 9999; /* Below the main nav which likely has z-index 10000+ */
}

/* Make sure banner doesn't interfere with footer */
.sticky-footer {
    margin-bottom: 0 !important;
}

/* Adjust banner for mobile devices with fixed navigation */
@media (max-width: 991px) {
    #gdpr-consent-banner {
        bottom: 56px; /* Account for mobile nav height */
    }
}

/* Enhance modal for better readability with dark theme */
.gdpr-modal {
    border: 1px solid rgba(255, 255, 255, 0.125);
}

/* Better contrast for dark theme users */
@media (prefers-color-scheme: dark) {
    .gdpr-modal {
        background-color: #2c3e50;
        color: #ecf0f1;
    }
    
    .gdpr-modal-header {
        border-bottom-color: rgba(255, 255, 255, 0.125);
    }
    
    .gdpr-modal-footer {
        border-top-color: rgba(255, 255, 255, 0.125);
    }
    
    .gdpr-category-description {
        color: #95a5a6 !important;
    }
}

/* Ensure buttons match site theme */
.gdpr-buttons .btn-primary {
    background-color: var(--primary, #007bff);
    border-color: var(--primary, #007bff);
}

.gdpr-buttons .btn-secondary {
    background-color: var(--secondary, #6c757d);
    border-color: var(--secondary, #6c757d);
}

/* Privacy policy enhancements */
.privacy-policy-section {
    margin-bottom: 2rem;
}

.privacy-policy-section h2 {
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.privacy-policy-section h3 {
    color: #6c757d;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Cookie preferences buttons in privacy policy */
.privacy-cookie-controls {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.privacy-cookie-controls h5 {
    margin-bottom: 1rem;
    color: #495057;
}

/* Accessibility improvements */
.gdpr-banner button:focus,
.gdpr-modal button:focus,
.gdpr-switch input:focus + .gdpr-slider {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Animation for smooth banner appearance */
#gdpr-consent-banner {
    animation: slideUp 0.3s ease-out;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gdpr-banner {
        background-color: #000;
        border-top: 3px solid #fff;
    }
    
    .gdpr-modal {
        border: 3px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #gdpr-consent-banner,
    .gdpr-slider,
    .gdpr-slider:before {
        animation: none;
        transition: none;
    }
}