/* Banner de Consentimento de Cookies */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: none;
    animation: slideUp 0.4s ease-out;
    border-top: 3px solid #209869;
}

#cookie-consent-banner.show {
    display: block;
}

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

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

.cookie-consent-content {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent-title::before {
    content: "🍪";
    font-size: 1.4rem;
}

.cookie-consent-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 0;
}

.cookie-consent-text a {
    color: #209869;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-consent-text a:hover {
    color: #28c47f;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cookie-consent-btn-accept {
    background: linear-gradient(135deg, #209869 0%, #28c47f 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(32, 152, 105, 0.3);
}

.cookie-consent-btn-accept:hover {
    background: linear-gradient(135deg, #1a7d55 0%, #209869 100%);
    box-shadow: 0 4px 12px rgba(32, 152, 105, 0.5);
    transform: translateY(-2px);
}

.cookie-consent-btn-settings {
    background: transparent;
    color: #ffffff;
    border: 2px solid #555555;
}

.cookie-consent-btn-settings:hover {
    background: #3d3d3d;
    border-color: #777777;
    transform: translateY(-2px);
}

.cookie-consent-btn-decline {
    background: transparent;
    color: #cccccc;
    border: 2px solid #555555;
}

.cookie-consent-btn-decline:hover {
    background: #3d3d3d;
    border-color: #777777;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Modal de Preferências */
#cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

#cookie-preferences-modal.show {
    display: flex;
}

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

.cookie-preferences-content {
    background: #ffffff;
    color: #333333;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-preferences-header {
    background: linear-gradient(135deg, #209869 0%, #28c47f 100%);
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-preferences-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.cookie-preferences-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cookie-preferences-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.cookie-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.cookie-category-required {
    font-size: 0.8rem;
    color: #999999;
    font-style: italic;
}

.cookie-category-description {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #209869;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-preferences-footer {
    padding: 20px 24px;
    background: #f5f5f5;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-preferences-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-preferences-footer .btn-save {
    background: linear-gradient(135deg, #209869 0%, #28c47f 100%);
    color: #ffffff;
}

.cookie-preferences-footer .btn-save:hover {
    background: linear-gradient(135deg, #1a7d55 0%, #209869 100%);
    transform: translateY(-2px);
}

.cookie-preferences-footer .btn-cancel {
    background: #e0e0e0;
    color: #333333;
}

.cookie-preferences-footer .btn-cancel:hover {
    background: #cccccc;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        gap: 16px;
    }

    .cookie-consent-content {
        min-width: 100%;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-btn {
        flex: 1;
        min-width: 120px;
    }

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

    .cookie-preferences-header h2 {
        font-size: 1.2rem;
    }

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

    .cookie-preferences-footer button {
        width: 100%;
    }
}

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

    .cookie-consent-title {
        font-size: 1rem;
    }

    .cookie-consent-text {
        font-size: 0.85rem;
    }

    .cookie-consent-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
