/**
 * GDPR Cookie Consent Banner Styles
 */

/* Banner principale */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #556ee6 0%, #4d63d4 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

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

.cookie-consent-banner.cookie-consent-hidden {
    transform: translateY(100%);
}

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

.cookie-consent-text h5 {
    color: #ffffff;
    margin-bottom: 8px;
    margin-left: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-text h5 i {
    font-size: 22px;
    flex-shrink: 0;
}

.cookie-consent-text p {
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.95;
}

.cookie-consent-text a {
    color: #ffffff;
    font-weight: 500;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-actions .btn {
    white-space: nowrap;
    font-size: 14px;
    padding: 8px 16px;
}

/* Modal impostazioni */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.cookie-settings-modal.cookie-settings-visible {
    opacity: 1;
}

.cookie-settings-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.cookie-settings-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.cookie-settings-modal.cookie-settings-visible .cookie-settings-content {
    transform: scale(1);
}

.cookie-settings-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eff2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #495057;
}

.cookie-settings-header h5 i {
    margin-right: 8px;
    color: #556ee6;
    font-size: 24px;
    vertical-align: middle;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #74788d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cookie-close-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.cookie-settings-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.cookie-category {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
}

.cookie-category h6 {
    font-size: 15px;
    font-weight: 600;
    color: #495057;
}

.cookie-category .small {
    font-size: 13px;
    line-height: 1.5;
}

.form-check-input {
    cursor: pointer;
    width: 3rem;
    height: 1.5rem;
}

.form-check-input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-settings-footer {
    padding: 16px 24px;
    border-top: 1px solid #eff2f7;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.cookie-settings-footer .btn {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cookie-consent-banner {
        padding: 16px;
    }

    .cookie-consent-text h5 {
        font-size: 16px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-settings-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 16px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .btn {
        width: 100%;
    }
}

/* Animazioni */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

