/* Cookie Consent Banner - LGPD Compliance */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-consent-overlay.active {
    display: block;
    opacity: 1;
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a2332;
    color: #fff;
    padding: 20px;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

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

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #19A7A0;
}

.cookie-consent-text p {
    margin: 0 0 10px 0;
    color: #ccc;
}

.cookie-consent-text a {
    color: #19A7A0;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #158a84;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 300px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background: #19A7A0;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #158a84;
}

.cookie-btn-reject {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
}

.cookie-btn-reject:hover {
    background: #333;
    border-color: #777;
}

.cookie-btn-settings {
    background: transparent;
    color: #19A7A0;
    border: 1px solid #19A7A0;
}

.cookie-btn-settings:hover {
    background: #19A7A0;
    color: #fff;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 100000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-settings-header h2 {
    margin: 0;
    color: #1a2332;
    font-size: 20px;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.cookie-settings-close:hover {
    color: #333;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.cookie-category-title {
    font-weight: 600;
    color: #1a2332;
    margin: 0;
}

.cookie-category-desc {
    color: #666;
    font-size: 13px;
    margin: 0 0 10px 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

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

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

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

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

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

.cookie-toggle input:disabled + .cookie-slider {
    background-color: #19A7A0;
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-settings-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-settings-modal {
        width: 95%;
        padding: 20px;
    }
}