/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(102, 204, 255, 0.1);
    z-index: 1005;
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(102, 204, 255, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-content p {
    margin: 0;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accept-all {
    background: linear-gradient(135deg, #66CCFF, #3399CC);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 204, 255, 0.2);
}

.settings {
    background: #f8f9fa;
    color: #1e1e1e;
    border: 1px solid rgba(102, 204, 255, 0.2);
}

.accept-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 204, 255, 0.3);
}

.settings:hover {
    background: rgba(102, 204, 255, 0.1);
    transform: translateY(-1px);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1006;
    backdrop-filter: blur(5px);
    padding: 1rem;
}

.cookie-settings-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 2rem);
    box-shadow: 0 8px 24px rgba(102, 204, 255, 0.15);
    animation: modalSlideUp 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(102, 204, 255, 0.1);
}

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

.cookie-settings-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(102, 204, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e1e1e;
    background: linear-gradient(90deg, #1e1e1e, #66CCFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-settings {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #66CCFF;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-settings:hover {
    background: rgba(102, 204, 255, 0.1);
    color: #3399CC;
}

.cookie-settings-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    /* Custom scrollbar for the modal body */
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Custom scrollbar styles */
.cookie-settings-body::-webkit-scrollbar {
    width: 8px;
}

.cookie-settings-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cookie-settings-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.cookie-settings-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    background: #f1f3f5;
}

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

.cookie-category h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.cookie-category p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

input:checked + .slider {
    background: linear-gradient(135deg, #66CCFF, #3399CC);
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(102, 204, 255, 0.2);
}

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

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

.cookie-settings-footer button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.cookie-settings-footer .accept-all {
    background: linear-gradient(135deg, #66CCFF, #3399CC);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 204, 255, 0.2);
}

.cookie-settings-footer .save-settings {
    background: #f8f9fa;
    color: #1e1e1e;
    border: 1px solid rgba(102, 204, 255, 0.2);
}

.cookie-settings-footer button:hover {
    transform: translateY(-1px);
}

.cookie-settings-footer .accept-all:hover {
    box-shadow: 0 4px 8px rgba(102, 204, 255, 0.3);
}

.cookie-settings-footer .save-settings:hover {
    background: rgba(102, 204, 255, 0.1);
}

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

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

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

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

    .cookie-buttons button {
        width: 100%;
        justify-content: center;
    }

    .cookie-settings-content {
        max-height: calc(100vh - 1rem);
        margin: 0;
    }

    .cookie-settings-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-settings-footer button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 0.75rem;
    }

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

    .cookie-buttons button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .cookie-settings-header h2 {
        font-size: 1.25rem;
    }

    .cookie-category h3 {
        font-size: 1rem;
    }

    .cookie-settings-content {
        border-radius: 8px;
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 1rem;
    }
}

/* Dark Mode Support */
body.dark-mode .cookie-consent-banner {
    background: rgba(30, 30, 30, 0.98);
    border-top: 1px solid rgba(102, 204, 255, 0.2);
}

body.dark-mode .cookie-content p {
    color: #ffffff;
}

body.dark-mode .settings {
    background: rgba(40, 40, 40, 0.8);
    color: #ffffff;
    border: 1px solid rgba(102, 204, 255, 0.3);
}

body.dark-mode .settings:hover {
    background: rgba(102, 204, 255, 0.2);
}

body.dark-mode .cookie-settings-content {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(102, 204, 255, 0.2);
}

body.dark-mode .cookie-settings-header h2 {
    background: linear-gradient(90deg, #ffffff, #66CCFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .cookie-settings-header {
    border-bottom: 1px solid rgba(102, 204, 255, 0.3);
}

body.dark-mode .cookie-category {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(102, 204, 255, 0.2);
}

body.dark-mode .cookie-category:hover {
    background: rgba(102, 204, 255, 0.1);
}

body.dark-mode .cookie-category h3 {
    color: #ffffff;
}

body.dark-mode .cookie-category p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .cookie-settings-footer .save-settings {
    background: rgba(40, 40, 40, 0.8);
    color: #ffffff;
    border: 1px solid rgba(102, 204, 255, 0.3);
}

body.dark-mode .cookie-settings-footer .save-settings:hover {
    background: rgba(102, 204, 255, 0.2);
} 