/* Banner de Cookies - Benha Tecnologia */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 3px solid var(--accent);
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h4 {
    color: var(--accent-light);
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-text p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--accent-light);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: var(--accent);
}

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--accent);
    color: var(--text-light);
}

.cookie-btn-accept:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 123, 0, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.cookie-btn-reject:hover {
    background: var(--text-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--accent-light);
    border: 2px solid var(--accent-light);
    font-size: 0.8rem;
    padding: 8px 16px;
}

.cookie-btn-settings:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.cookie-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Modal de Configurações de Cookies */
.cookie-settings-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;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-gray);
}

.cookie-settings-header h3 {
    color: var(--primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-settings-close:hover {
    background: var(--bg-gray);
    transform: rotate(90deg);
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid var(--bg-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.cookie-category-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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: 24px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--accent);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: var(--primary-light);
    cursor: not-allowed;
}

.cookie-category-description {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-settings-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-gray);
}

.cookie-settings-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-settings-btn-save {
    background: var(--accent);
    color: white;
}

.cookie-settings-btn-save:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 123, 0, 0.3);
}

.cookie-settings-btn-cancel {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.cookie-settings-btn-cancel:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .cookie-settings-content {
        margin: 10px;
        padding: 20px;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
    }
    
    .cookie-settings-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

