/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1A202C;
    color: white;
    padding: 24px;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid #4F46E5;
}

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

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

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #6366F1;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #8B5CF6;
}

.cookie-banner-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #4F46E5;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #4338CA;
}

.cookie-btn-reject {
    background-color: transparent;
    color: #9CA3AF;
    border: 1px solid #374151;
}

.cookie-btn-reject:hover {
    background-color: #374151;
    color: white;
}

.cookie-btn-customize {
    background-color: transparent;
    color: #6366F1;
    border: 1px solid #4F46E5;
}

.cookie-btn-customize:hover {
    background-color: #4F46E5;
    color: white;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cookie-settings-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cookie-settings-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cookie-settings-close:hover {
    color: #1A202C;
}

.cookie-settings-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1A202C;
    text-align: center;
}

.cookie-category {
    margin-bottom: 28px;
    padding: 24px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background-color: #F9FAFB;
}

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

.cookie-category h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1A202C;
    margin: 0;
}

.cookie-category.essential {
    background-color: #FEF3C7;
    border-color: #F59E0B;
}

.cookie-category.essential h3 {
    color: #92400E;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

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

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

.cookie-toggle.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.cookie-category p {
    color: #4B5563;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.cookie-settings-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.cookie-settings-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-settings-btn-save {
    background-color: #4F46E5;
    color: white;
}

.cookie-settings-btn-save:hover {
    background-color: #4338CA;
}

.cookie-settings-btn-cancel {
    background-color: #F3F4F6;
    color: #1A202C;
}

.cookie-settings-btn-cancel:hover {
    background-color: #E5E7EB;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-banner-text {
        text-align: center;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-settings-content {
        margin: 2% auto;
        padding: 24px;
        width: 95%;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-settings-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}