/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.98);
    backdrop-filter: blur(8px);
    color: white;
    padding: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    border-top: 2px solid #3B82F6;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

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

.cookie-banner-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #E2E8F0;
}

.cookie-banner-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #CBD5E1;
    margin-bottom: 0;
}

.cookie-banner-text a {
    color: #60A5FA;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #93C5FD;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #10B981;
    color: white;
}

.cookie-btn-accept:hover {
    background: #059669;
    transform: translateY(-1px);
}

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

.cookie-btn-reject:hover {
    background: #DC2626;
    transform: translateY(-1px);
}

.cookie-btn-customize {
    background: transparent;
    color: #E2E8F0;
    border: 1px solid #475569;
}

.cookie-btn-customize:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #64748B;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1) translateY(0);
}

.cookie-modal-header {
    padding: 24px 24px 0;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 24px;
}

.cookie-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 8px;
}

.cookie-modal-subtitle {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.cookie-modal-content {
    padding: 0 24px 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

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

.cookie-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.cookie-category.essential .cookie-category-title {
    color: #059669;
}

.cookie-category-description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cookie-examples {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-style: italic;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #3B82F6;
}

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

.cookie-toggle.disabled .cookie-toggle-slider {
    background-color: #10B981;
    cursor: not-allowed;
}

.cookie-toggle.disabled .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-modal-actions {
    padding: 16px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-modal-btn-save {
    background: #3B82F6;
    color: white;
}

.cookie-modal-btn-save:hover {
    background: #2563EB;
}

.cookie-modal-btn-cancel {
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-banner-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-modal {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-modal-header {
        padding: 16px 16px 0;
    }
    
    .cookie-modal-content {
        padding: 0 16px 16px;
    }
    
    .cookie-modal-actions {
        padding: 12px 16px;
        flex-direction: column;
    }
    
    .cookie-modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-banner-title {
        font-size: 1rem;
    }
    
    .cookie-banner-text {
        font-size: 0.8rem;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}