/* =====================================================
   ESTILOS DO BANNER DE COOKIES
   Sistema LGPD - Conforme Guia ANPD
   ===================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid #2563eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 1.5rem;
    animation: slideUp 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cookie-banner-header i {
    font-size: 1.5rem;
    color: #2563eb;
}

.cookie-banner-header h5 {
    margin: 0;
    font-weight: 600;
    color: #212529;
}

.cookie-banner-body {
    color: #495057;
    line-height: 1.6;
}

.cookie-banner-body p {
    margin-bottom: 1rem;
}

.cookie-policy-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-policy-link:hover {
    color: #1d4ed8;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cookie-banner-buttons .btn {
    flex: 1;
    min-width: 140px;
}

/* Modal de Preferências */
.cookie-category-item {
    background: #f8f9fa;
    transition: background-color 0.2s;
}

.cookie-category-item:hover {
    background: #e9ecef;
}

.cookie-category-item h6 {
    color: #212529;
    font-weight: 600;
}

.cookie-category-item .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.cookie-category-toggle {
    font-size: 1.25rem;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .cookie-banner-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cookie-banner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Página de Preferências */
.cookie-category-card {
    background: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.cookie-category-card:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

/* Animação de saída */
.cookie-banner.hiding {
    animation: slideDown 0.3s ease-in forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Overlay para modal em mobile */
@media (max-width: 768px) {
    .cookie-banner {
        max-height: 100vh;
    }
}

