/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

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

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #E5E7EB;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

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

.cookie-accept {
    background: #6366F1;
    color: white;
}

.cookie-accept:hover {
    background: #5855EB;
}

.cookie-reject {
    background: transparent;
    color: #E5E7EB;
    border: 1px solid #4B5563;
}

.cookie-reject:hover {
    background: #374151;
    border-color: #6B7280;
}

.cookie-customize {
    background: transparent;
    color: #6EE7B7;
    border: 1px solid #6EE7B7;
}

.cookie-customize:hover {
    background: rgba(110, 231, 183, 0.1);
}

.cookie-link {
    color: #6EE7B7;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Cookie Preferences Panel */
.cookie-preferences {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-preferences h3 {
    margin: 0 0 16px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.cookie-category {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #4B5563;
    border-radius: 12px;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: #6366F1;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
    background: #6B7280;
    opacity: 0.7;
}

.cookie-info {
    flex: 1;
}

.cookie-info strong {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.cookie-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #D1D5DB;
    line-height: 1.4;
}

.cookie-preference-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cookie-preference-actions {
        justify-content: center;
    }
    
    .cookie-toggle {
        align-items: center;
    }
}