﻿#cookieConsentOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

    #cookieConsentOverlay.show {
        opacity: 1;
        visibility: visible;
    }

/* Banner de Cookies */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    font-family: Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

    #cookieBanner.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    margin-bottom: 15px;
    color: #333;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.cookie-btn-accept {
    background: rgb(36 192 181);
    color: white;
}

    .cookie-btn-accept:hover {
        background: rgb(28 170 170);
    }

.cookie-btn-reject {
    background: #fd5e8f;
    color: white;
}

    .cookie-btn-reject:hover {
        background: #e4377c;
    }

.cookie-btn-settings {
    background: #2196F3;
    color: white;
}

    .cookie-btn-settings:hover {
        background: #0b7dda;
    }


.fa-cookie-bite{
    font-size: 25px;
}
/* Modal de Configurações */
#cookieSettingsModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

    #cookieSettingsModal.show {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

.modal-header-cookies {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

    .modal-header-cookies h2 {
        margin: 0;
        color: #333;
    }

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

    .close-modal:hover {
        color: #333;
    }

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .category-header h3 {
        margin: 0;
        font-size: 16px;
        color: #333;
    }

.category-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #4CAF50;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.required-badge {
    background: #bd88e8;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 10px;
}

/* Botão de configurações flutuante */
#cookieSettingsButton {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgb(129, 241, 29);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    display: none;
    z-index: 10001;
}

    #cookieSettingsButton.show {
        display: block;
    }

    #cookieSettingsButton:hover {
        background: rgb(88, 226, 55);
    }

.fa-cookie-bite{
    cursor: pointer !important;
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
    backdrop-filter: blur(10px);
    min-width: 320px;
    position: relative;
    overflow: hidden;
}

.alert-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    animation: progressBar 5s linear forwards;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #45c298;
    color: #065F46;
}

    .alert-success .alert-progress-bar {
        background-color: #10B981;
    }

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #f35858;
    color: #991B1B;
}

    .alert-error .alert-progress-bar {
        background-color: #EF4444;
    }

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #F59E0B;
    color: #92400E;
}

    .alert-warning .alert-progress-bar {
        background-color: #F59E0B;
    }

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3B82F6;
    color: #1E40AF;
}

    .alert-info .alert-progress-bar {
        background-color: #3B82F6;
    }

.btnCloseAlert {
    margin-left: 12px;
    font-size: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

    .btnCloseAlert:hover {
        opacity: 1;
    }
