/* StudiHub - GDPR Cookie Consent Styling */

/* Banner Cookie In Basso (Floating Bar) */
.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1100px;
    z-index: 1090;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}

.cookie-consent-banner.show {
    bottom: 1.25rem;
    opacity: 1;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.cookie-consent-header i {
    color: #0d6efd;
    font-size: 1.3rem;
}

.cookie-consent-body p {
    font-size: 0.925rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-consent-actions .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.cookie-consent-actions .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.cookie-consent-actions .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.35);
}

.cookie-consent-actions .btn-outline-secondary {
    border-color: #cbd5e1;
    color: #334155;
}

.cookie-consent-actions .btn-outline-secondary:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Modal Preferenze Cookie */
#cookiePreferencesModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

#cookiePreferencesModal .modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
}

#cookiePreferencesModal .modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    transition: border-color 0.2s ease;
}

.cookie-category-item:hover {
    border-color: #cbd5e1;
}

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

.cookie-category-title {
    font-weight: 600;
    font-size: 0.975rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Custom Switches */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
        border-radius: 12px;
    }

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

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