/* Cookie Consent Styling */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #007bff;
    animation: slideUp 0.3s ease-out;
}

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

.cookie-consent-content h5 {
    color: #ffffff;
    font-weight: 600;
}

.cookie-consent-content p {
    color: #e9ecef;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-policy-link {
    color: #17a2b8;
    text-decoration: underline;
}

.cookie-policy-link:hover {
    color: #138496;
    text-decoration: none;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-consent-actions .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    min-width: auto;
}

.cookie-consent-actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Cookie Settings Modal Styles */
.cookie-category {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.25rem;
    background-color: #f8f9fa;
    transition: all 0.2s;
}

.cookie-category:hover {
    border-color: #dee2e6;
    background-color: #f1f3f4;
}

.cookie-category h6 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.cookie-category .text-muted {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0;
}

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

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

.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 3rem;
}

.form-switch .form-check-input:checked {
    background-position: right center;
}

/* Modal customization */
#cookieSettingsModal .modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#cookieSettingsModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0.75rem 0.75rem 0 0;
}

#cookieSettingsModal .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 0.75rem 0.75rem;
    gap: 0.5rem;
}

#cookieSettingsModal .modal-title {
    color: #495057;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1.5rem 0;
    }

    .cookie-consent-actions {
        margin-top: 1rem;
        justify-content: center;
    }

    .cookie-consent-actions .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        min-width: 80px;
    }

    .cookie-consent-content h5 {
        font-size: 1.1rem;
    }

    .cookie-consent-content p {
        font-size: 0.85rem;
    }

    .cookie-category {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    #cookieSettingsModal .modal-dialog {
        margin: 1rem;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .cookie-consent-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .cookie-consent-actions .btn:last-child {
        margin-bottom: 0;
    }
}

/* Accessibility improvements */
.cookie-consent-banner:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-check-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        background: #000000;
        border-color: #ffffff;
    }

    .cookie-category {
        border-color: #000000;
        background-color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        animation: none;
    }

    .cookie-category {
        transition: none;
    }

    .btn {
        transition: none;
    }
}

/* Print styles */
@media print {
    .cookie-consent-banner,
    #cookieSettingsModal {
        display: none !important;
    }
}
