/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(38, 50, 56, 0.98);
    color: #fff;
    z-index: 1001;
    padding: 2rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.cookie-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cookie-content p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

/* Cookie Modal Styles */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.cookie-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 3rem;
    border-radius: 8px;
    max-width: 60rem;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s;
}

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

.cookie-modal-content h2 {
    font-size: 2.4rem;
    color: #263238;
    margin-bottom: 1.5rem;
}

.cookie-modal-content p {
    color: #455a64;
    margin-bottom: 2.5rem;
}

.close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 3rem;
    font-weight: bold;
    color: #455a64;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #1e88e5;
}

.cookie-options {
    margin-bottom: 3rem;
}

.cookie-option {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eceff1;
    padding-bottom: 2rem;
}

.cookie-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.cookie-option-header h3 {
    font-size: 1.8rem;
    color: #263238;
}

.cookie-option p {
    margin-bottom: 0;
    font-size: 1.5rem;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 5.4rem;
    height: 2.8rem;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cfd8dc;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 2rem;
    width: 2rem;
    left: 0.4rem;
    bottom: 0.4rem;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:focus + .slider {
    box-shadow: 0 0 1px #4caf50;
}

input:checked + .slider:before {
    transform: translateX(2.6rem);
}

/* Rounded sliders */
.slider.round {
    border-radius: 3.4rem;
}

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

.cookie-modal-buttons {
    display: flex;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
    }

    .cookie-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .cookie-modal-content {
        padding: 2rem;
        margin: 10% auto;
        width: 95%;
    }

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