/* Estilos do Banner de Cookies LGPD - Glassmorphism Moderno */
:root {
    --lgpd-bg: rgba(255, 255, 255, 0.75);
    --lgpd-border: rgba(255, 255, 255, 0.4);
    --lgpd-shadow: rgba(0, 0, 0, 0.08);
    --lgpd-text-title: #0f172a;
    --lgpd-text-desc: #475569;
    --lgpd-btn-primary-bg: #2563eb;
    --lgpd-btn-primary-hover: #1d4ed8;
    --lgpd-btn-primary-text: #ffffff;
    --lgpd-btn-secondary-bg: rgba(241, 245, 249, 0.8);
    --lgpd-btn-secondary-hover: rgba(226, 232, 240, 0.9);
    --lgpd-btn-secondary-text: #334155;
    --lgpd-switch-bg: #cbd5e1;
    --lgpd-switch-active: #10b981;
}

@media (prefers-color-scheme: dark) {
    :root {
        --lgpd-bg: rgba(15, 23, 42, 0.75);
        --lgpd-border: rgba(255, 255, 255, 0.08);
        --lgpd-shadow: rgba(0, 0, 0, 0.3);
        --lgpd-text-title: #f8fafc;
        --lgpd-text-desc: #94a3b8;
        --lgpd-btn-primary-bg: #3b82f6;
        --lgpd-btn-primary-hover: #2563eb;
        --lgpd-btn-primary-text: #0f172a;
        --lgpd-btn-secondary-bg: rgba(30, 41, 59, 0.7);
        --lgpd-btn-secondary-hover: rgba(51, 65, 85, 0.8);
        --lgpd-btn-secondary-text: #e2e8f0;
        --lgpd-switch-bg: #475569;
        --lgpd-switch-active: #34d399;
    }
}

/* Container do banner */
.lgpd-banner-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: 24px;
    z-index: 99999;
    max-width: 520px;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
}

@media (min-width: 640px) {
    .lgpd-banner-wrapper {
        left: auto;
    }
}

.lgpd-banner-wrapper.lgpd-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Card principal em Glassmorphism */
.lgpd-banner-card {
    background: var(--lgpd-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--lgpd-border);
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px var(--lgpd-shadow), 0 8px 10px -6px var(--lgpd-shadow);
    padding: 24px;
    overflow: hidden;
}

.lgpd-banner-title {
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lgpd-text-title);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.lgpd-banner-desc {
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--lgpd-text-desc);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Ações / Botões */
.lgpd-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.lgpd-btn {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.lgpd-btn-primary {
    background: var(--lgpd-btn-primary-bg);
    color: var(--lgpd-btn-primary-text);
}

.lgpd-btn-primary:hover {
    background: var(--lgpd-btn-primary-hover);
    transform: translateY(-1px);
}

.lgpd-btn-secondary {
    background: var(--lgpd-btn-secondary-bg);
    color: var(--lgpd-btn-secondary-text);
    border: 1px solid var(--lgpd-border);
}

.lgpd-btn-secondary:hover {
    background: var(--lgpd-btn-secondary-hover);
}

.lgpd-btn-text {
    background: transparent;
    color: var(--lgpd-text-title);
    padding-left: 8px;
    padding-right: 8px;
    border: 1px solid transparent;
}

.lgpd-btn-text:hover {
    color: var(--lgpd-btn-primary-bg);
    background: rgba(37, 99, 235, 0.05);
}

/* Lista de Preferências */
.lgpd-pref-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Barra de rolagem customizada */
.lgpd-pref-list::-webkit-scrollbar {
    width: 6px;
}
.lgpd-pref-list::-webkit-scrollbar-track {
    background: transparent;
}
.lgpd-pref-list::-webkit-scrollbar-thumb {
    background: var(--lgpd-border);
    border-radius: 10px;
}

.lgpd-pref-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lgpd-border);
}

.lgpd-pref-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lgpd-pref-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.lgpd-pref-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lgpd-text-title);
}

.lgpd-pref-desc {
    font-size: 0.8rem;
    color: var(--lgpd-text-desc);
    line-height: 1.4;
}

/* Toggle Switch Premium */
.lgpd-switch-wrapper {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-top: 4px;
}

.lgpd-switch-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.lgpd-switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--lgpd-switch-bg);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.lgpd-switch-label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.lgpd-switch-checkbox:checked + .lgpd-switch-label {
    background-color: var(--lgpd-switch-active);
}

.lgpd-switch-checkbox:checked + .lgpd-switch-label:before {
    transform: translateX(20px);
}

.lgpd-switch-label.for-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
