/* public/css/cookie-modal.css */
/* Reset para garantir que o modal fique por cima de tudo */

.show-more {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
}

.show-more:hover {
    text-decoration: underline;
}
html.has-cookie-modal {
    overflow: hidden;
}

#cookie-modals-container {
    position: fixed;
    z-index: 999990;
    pointer-events: none;
}

#cookie-modals-container > * {
    pointer-events: auto;
}

/* Estilos para os modais de cookie */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 999998;
    display: none;
}

.cookie-consent-modal {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 530px;
    max-width: 70%;
    z-index: 999999;
    display: none;
}

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

.cookie-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
    padding-right: 20px;
}

.close-consent-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: 15px;
}

.close-consent-modal:hover {
    color: #333;
    background-color: #f5f5f5;
}

.cookie-content {
    margin-bottom: 0px;
}

.cookie-intro {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.cookie-intro a {
    color: #007bff;
    text-decoration: none;
}

.cookie-intro a:hover {
    text-decoration: underline;
}

.cookie-actions-initial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.preferences-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    display: none;
    flex-direction: column;
}

.preferences-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preferences-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preferences-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.preferences-description p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.cookie-category {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cookie-category label {
    display: flex;
    gap: 15px;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    margin-top: 4px;
}

.cookie-category strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.cookie-category p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.preferences-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.preferences-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.cookie-button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.cookie-button.accept {
    background: #28a745;
    color: white;
}

.cookie-button.accept:hover {
    background: #218838;
}

.cookie-button.reject {
    background: #dc3545;
    color: white;
}

.cookie-button.reject:hover {
    background: #c82333;
}

.cookie-button.personalize {
    background: #6c757d;
    color: white;
}

.cookie-button.personalize:hover {
    background: #5a6268;
}

.cookie-button.save {
    background: #007bff;
    color: white;
}

.preferences-credits {
    text-align: right;
    font-size: 0.9em;
    color: #666;
}

.preferences-credits a {
    color: #007bff;
    text-decoration: none;
}

.preferences-credits a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-consent-modal {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        transform: none;
        border-radius: 8px 8px 0 0;
        margin: 0;
    }
    
    .preferences-modal {
        width: 95%;
        height: 95vh;
        max-height: none;
        top: 2.5vh;
        transform: translateX(-50%);
    }
    
    .cookie-actions-initial,
    .preferences-actions {
        grid-template-columns: 1fr;
    }
}
