/* Cookie Consent Banner Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #0d6efd;
}

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

.cookie-consent-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-banner .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-consent-banner .btn-light {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #212529;
}

.cookie-consent-banner .btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-consent-banner .btn-outline-light {
    color: #ffffff;
    border-color: #ffffff;
    background-color: transparent;
}

.cookie-consent-banner .btn-outline-light:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-consent-banner a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-consent-banner a:hover {
    color: #adb5bd;
}

/* Cookie Settings Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    border-bottom: none;
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0 0 1rem 1rem;
}

/* Cookie Category Styles */
.cookie-category {
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.cookie-category:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
}

.cookie-category .form-label {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.cookie-category .form-check-input {
    transform: scale(1.2);
    margin: 0;
}

.cookie-category .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.cookie-category .form-check-input:disabled {
    opacity: 0.7;
}

.cookie-category .text-muted {
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Cookie Icons */
.cookie-category i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Cookie Status Indicators */
.cookie-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-status.required {
    background-color: #198754;
    color: white;
}

.cookie-status.optional {
    background-color: #6c757d;
    color: white;
}

.cookie-status.enabled {
    background-color: #0d6efd;
    color: white;
}

.cookie-status.disabled {
    background-color: #dc3545;
    color: white;
}

/* Cookie Info Cards */
.cookie-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.cookie-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--category-color, #6c757d);
}

.cookie-info-card.necessary::before {
    background: #198754;
}

.cookie-info-card.analytics::before {
    background: #0d6efd;
}

.cookie-info-card.marketing::before {
    background: #ffc107;
}

.cookie-info-card.functional::before {
    background: #0dcaf0;
}

.cookie-info-card h6 {
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #212529;
}

.cookie-info-card p {
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-info-card .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Cookie Banner Animation */
@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-consent-banner.show {
    animation: slideUpFromBottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.hide {
    animation: slideDownToBottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cookie Toggle Switch Enhancements */
.form-check-input[type="checkbox"] {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1rem;
    background-image: none;
    background-color: #6c757d;
    border: 2px solid #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input[type="checkbox"]:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

.form-check-input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cookie Preference Summary */
.cookie-preference-summary {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

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

.cookie-preference-summary .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

/* Responsive Design for Cookie Banner */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1.5rem 0;
    }
    
    .cookie-consent-banner .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .cookie-consent-banner .btn:last-child {
        margin-bottom: 0;
    }
    
    .cookie-consent-banner p {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .cookie-consent-banner .col-md-8,
    .cookie-consent-banner .col-md-4 {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .cookie-consent-banner {
        padding: 1rem 0;
    }
    
    .cookie-consent-banner p {
        font-size: 0.85rem;
    }
    
    .cookie-consent-banner .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .cookie-category .form-label {
        font-size: 1rem;
    }
}

/* Cookie Banner Themes */
.cookie-consent-banner.theme-dark {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    border-top-color: #0d6efd;
}

.cookie-consent-banner.theme-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #212529;
    border-top-color: #0d6efd;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookie-consent-banner.theme-light .btn-light {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.cookie-consent-banner.theme-light .btn-outline-light {
    color: #0d6efd;
    border-color: #0d6efd;
}

.cookie-consent-banner.theme-light a {
    color: #0d6efd;
}

/* Cookie Settings Quick Actions */
.cookie-quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cookie-quick-actions .btn {
    flex: 1;
    min-width: 140px;
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .cookie-quick-actions {
        flex-direction: column;
    }
    
    .cookie-quick-actions .btn {
        width: 100%;
    }
}

/* Cookie Icon Animation */
.fas.fa-cookie-bite {
    animation: cookieFloat 3s ease-in-out infinite;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border: 3px solid currentColor;
    }
    
    .cookie-category {
        border-width: 3px;
    }
    
    .form-check-input[type="checkbox"] {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
    }
    
    .cookie-consent-banner.show {
        animation: none;
        transform: translateY(0);
    }
    
    .cookie-consent-banner.hide {
        animation: none;
        transform: translateY(100%);
    }
    
    .fas.fa-cookie-bite {
        animation: none;
    }
    
    .cookie-category,
    .btn,
    .form-check-input {
        transition: none;
    }
}
