/* Cookie Consent Banner Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 25px 30px;
    font-family: inherit;
    max-width: 1200px;
    margin: 0 auto;
}

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

.cookie-consent-text {
    color: #2B2B2B;
}

.cookie-consent-text h5 {
    color: #222325;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.cookie-consent-text p {
    color: #2B2B2B;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-categories {
    margin: 18px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1C2DE7;
}

.cookie-category {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-category strong {
    color: #222325;
    display: inline-block;
    min-width: 140px;
    font-weight: 600;
}

.cookie-category span {
    color: #6c757d;
}

.cookie-consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-consent-buttons .btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    border-width: 2px;
}

.cookie-consent-buttons .btn-primary {
    background-color: #1C2DE7;
    border-color: #1C2DE7;
    color: #ffffff;
}

.cookie-consent-buttons .btn-primary:hover {
    background-color: #1623c4;
    border-color: #1623c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(28, 45, 231, 0.3);
}

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

.cookie-consent-buttons .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Cookie Preferences Modal Styles */

.cookie-preference-item {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cookie-preference-item h6 {
    color: #222325;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;
}

.cookie-preference-item p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

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

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #1C2DE7;
}

input:focus + .slider {
    box-shadow: 0 0 4px rgba(28, 45, 231, 0.5);
}

input:checked + .slider:before {
    -webkit-transform: translateX(28px);
    -ms-transform: translateX(28px);
    transform: translateX(28px);
}

input:disabled + .slider {
    background-color: #28a745 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

input:disabled + .slider:before {
    background-color: white;
}

/* Rounded sliders */
.slider.round {
    border-radius: 28px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Cookie Notification Styles */
.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    min-width: 300px;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    background-color: #ffffff;
}

.cookie-notification.alert-success {
    border-left: 4px solid #28a745;
}

.cookie-notification.alert-info {
    border-left: 4px solid #1C2DE7;
}

.cookie-notification.alert-warning {
    border-left: 4px solid #ffc107;
}

.cookie-notification .btn-close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #6c757d;
    opacity: 0.7;
    padding: 0;
    margin-left: 15px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.cookie-notification .btn-close:hover {
    opacity: 1;
    color: #495057;
}

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

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

@keyframes fadeInScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-consent-banner {
    animation: slideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-notification {
    animation: fadeInScale 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 20px;
        border-radius: 10px;
    }
    
    .cookie-consent-text h5 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .cookie-consent-text p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .cookie-categories {
        margin: 15px 0;
        padding: 12px;
    }
    
    .cookie-category {
        margin-bottom: 8px;
        font-size: 13px;
    }
    
    .cookie-category strong {
        display: block;
        min-width: auto;
        margin-bottom: 4px;
    }
    
    .cookie-consent-buttons {
        margin-top: 18px;
    }
    
    .cookie-consent-buttons .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .cookie-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    .cookie-preference-item {
        padding: 15px;
    }

    .cookie-preference-item h6 {
        font-size: 15px;
    }

    .switch {
        width: 50px;
        height: 26px;
    }

    .slider:before {
        height: 20px;
        width: 20px;
    }

    input:checked + .slider:before {
        transform: translateX(24px);
    }
}

@media (max-width: 576px) {
    .cookie-consent-banner {
        bottom: 5px;
        left: 5px;
        right: 5px;
        padding: 18px;
    }

    .cookie-consent-banner .row {
        flex-direction: column;
    }
    
    .cookie-consent-buttons {
        text-align: center !important;
        margin-top: 20px;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
    
    .cookie-consent-buttons .btn {
        display: flex !important;
        flex: 1;
        justify-content: center;
        width: auto !important;
        margin: 0;
        padding: 10px 12px;
        font-size: 12px;
    }

    .cookie-categories {
        padding: 10px;
    }

    .cookie-category {
        font-size: 12px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border: 3px solid #000000;
        background: #ffffff;
        color: #000000;
    }
    
    .cookie-preference-item {
        border: 2px solid #000000;
        background: #ffffff;
    }
    
    .slider {
        border: 2px solid #000000;
    }

    .cookie-consent-buttons .btn-primary {
        background-color: #000000;
        border-color: #000000;
        color: #ffffff;
    }

    .cookie-consent-buttons .btn-outline-secondary {
        border-color: #000000;
        color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-notification {
        animation: none !important;
    }
    
    .slider,
    .slider:before,
    .btn {
        transition: none !important;
    }
}

/* Focus styles for accessibility */
.cookie-consent-buttons .btn:focus,
.switch input:focus + .slider,
.cookie-notification .btn-close:focus {
    outline: 2px solid #1C2DE7;
    outline-offset: 2px;
}

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