/* Cookie Consent Banner Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-header i {
    font-size: 1.5rem;
}

.cookie-consent-header h5 {
    margin: 0;
    font-weight: 600;
}

.cookie-consent-text {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: #0d6efd;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #0a58ca;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-consent-buttons .btn {
    flex: 0 1 auto;
    white-space: nowrap;
    /* Equal visibility for all buttons */
    border: 1px solid #dee2e6;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.cookie-consent-buttons .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.cookie-consent-buttons .btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

.cookie-consent-buttons .btn-outline-secondary {
    color: #6c757d;
    border-color: #dee2e6;
    background-color: white;
}

.cookie-consent-buttons .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

/* Focus styles for keyboard navigation */
.cookie-consent-buttons .btn:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Cookie Settings Modal */
.cookie-category {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid #0d6efd;
}

.cookie-category:last-child {
    margin-bottom: 0 !important;
}

.cookie-category .form-check {
    margin-bottom: 0.5rem;
}

.cookie-category .form-check-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category .form-check-input {
    cursor: pointer;
    border: 1px solid #dee2e6;
}

.cookie-category .form-check-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.cookie-category .form-check-input:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.cookie-category .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.55rem;
}

.cookie-category .text-muted {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 0;
    display: block;
}

/* Responsive Design */
@media (min-width: 768px) {
    .cookie-consent-content {
        flex-direction: row;
        align-items: center;
    }

    .cookie-consent-header {
        flex-shrink: 0;
    }

    .cookie-consent-text {
        flex: 1;
    }

    .cookie-consent-buttons {
        flex-shrink: 0;
        flex-wrap: nowrap;
    }
}

@media (max-width: 767px) {
    .cookie-consent-banner {
        max-height: 80vh;
        overflow-y: auto;
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

    .cookie-consent-buttons .btn {
        width: 100%;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: #212529;
        color: #f8f9fa;
        box-shadow: 0 -4px 20px rgba(255, 255, 255, 0.1);
    }

    .cookie-consent-text {
        color: #adb5bd;
    }

    .cookie-category {
        background: #343a40;
    }
}

/* Animation for modal */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

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

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