/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.cookie-consent-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #0f2b44;
}

.cookie-consent-text p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.cookie-consent-text a {
    color: #4a90e2;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    overflow-y: auto;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-dialog {
    background: #ffffff;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.cookie-settings-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h4 {
    margin: 0;
    color: #0f2b44;
}

.cookie-settings-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid #6c757d;
}

.cookie-category.essential {
    border-left-color: #28a745;
    background: #f0f8f4;
}

.cookie-category.analytics {
    border-left-color: #4a90e2;
    background: #f0f6fb;
}

.cookie-category.marketing {
    border-left-color: #ff6b6b;
    background: #fff5f5;
}

.cookie-category.preferences {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category-header h6 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f2b44;
}

.cookie-category-description {
    margin: 0.5rem 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.cookie-examples {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #495057;
}

.cookie-examples strong {
    color: #0f2b44;
}

.cookie-info {
    background: #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.cookie-settings-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Form Switch Styling */
.form-check-input:checked {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

.form-check-input:disabled {
    background-color: #28a745;
    border-color: #28a745;
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-icon {
        font-size: 2.5rem;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-actions button {
        flex: 1;
        min-width: 100px;
    }

    .cookie-settings-dialog {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Print Media - Hide Cookie Banner */
@media print {
    .cookie-consent-banner,
    .cookie-settings-modal {
        display: none !important;
    }
}
