/* Cookie Consent Overlay */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Cookie Consent Modal */
.cookie-consent-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

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

/* Modal Header */
.cookie-consent-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 32px;
    border-radius: 16px 16px 0 0;
}

.cookie-consent-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Modal Body */
.cookie-consent-body {
    padding: 32px;
}

.cookie-consent-intro {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 24px;
}

/* Cookie Categories */
.cookie-categories {
    margin-bottom: 24px;
}

.cookie-category {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-category h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.cookie-category p {
    margin: 0;
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

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

.cookie-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.cookie-toggle input:disabled + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: not-allowed;
}

/* Action Buttons */
.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cookie-consent-actions button {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-accept-all {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-customize, .btn-back {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-customize:hover, .btn-back:hover {
    background: #f7fafc;
    transform: translateY(-2px);
}

.btn-refuse {
    background: #f7fafc;
    color: #718096;
    border: 1px solid #e2e8f0;
}

.btn-refuse:hover {
    background: #edf2f7;
}

/* Footer Links */
.cookie-consent-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.cookie-links {
    text-align: center;
    font-size: 14px;
    color: #718096;
    margin: 0;
}

.cookie-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 640px) {
    .cookie-consent-modal {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-consent-header {
        padding: 20px 24px;
    }

    .cookie-consent-header h2 {
        font-size: 20px;
    }

    .cookie-consent-body {
        padding: 24px;
    }

    .cookie-consent-intro {
        font-size: 14px;
    }

    .cookie-category {
        padding: 16px;
    }

    .cookie-consent-actions button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Floating Cookie Settings Button (for users to reopen preferences) */
.cookie-settings-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}
