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

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

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

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    color: #D1D5DB;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    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: #D1D5DB;
    border: 1px solid #6B7280;
}

.cookie-btn.reject:hover {
    background-color: #374151;
    border-color: #9CA3AF;
}

.cookie-btn.customize {
    background-color: #6B7280;
    color: white;
}

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

.cookie-policy-link {
    color: #84CC16;
    text-decoration: underline;
    margin-left: 1rem;
}

.cookie-policy-link:hover {
    color: #65A30D;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.cookie-settings-content {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-settings-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #1F2937;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

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

.cookie-category h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1rem;
}

.cookie-category p {
    margin: 0 0 1rem 0;
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #D1D5DB;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toggle-switch.active {
    background-color: #4F46E5;
}

.toggle-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

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

.cookie-settings-buttons .cookie-btn {
    min-width: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        min-width: auto;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .cookie-settings-modal {
        padding: 1rem;
    }
    
    .cookie-settings-content {
        padding: 1.5rem;
    }
    
    .cookie-settings-buttons {
        flex-direction: column;
    }
    
    .cookie-settings-buttons .cookie-btn {
        width: 100%;
    }
    
    .cookie-policy-link {
        margin-left: 0;
        margin-top: 0.5rem;
        display: block;
    }
}