/* PESQUISA */
#resultados {
    margin-top: 35px;
    max-width: 280px;
    /* Para ficar alinhado com o input */
    background-color: #fff;
    /* border: 1px solid #ccc; */
    border-radius: 20px;
    max-height: 200px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
    z-index: 1000;
    position: absolute;
    width: calc(100% - 2px);
    /* para evitar quebra no border */
}
.lstyle {
    list-style: none
}

.link {
    color: #525252;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: block;
}

.link:hover {
    background-color: #f1f1f1;
    text-decoration: underline;
}

.error {
    color: red;
    margin: 5px 0;
}
/* FORMULARIO DE CADASTRO */
.contato-formulario select, .contato-formulario input[type="date"] {
    font: 400 0.9rem / 1.5 "Roboto", sans-serif;
    background: rgb(245, 237, 229);
    border: 1px solid #f8e2c5;
    padding: 12px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}
.contato-formulario button {
    color: #380a6d;
}
.contato-formulario button:hover{
    color: #ed016c;
}

/* MODAL ALERTA */
/* Estilo do container do alerta */
.alert-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Estilos para diferentes tipos de alertas */
.alert-success {
    border-left: 8px solid #4caf50;
    background-color: #e6ffe6; /* Light green background */
}

.alert-error {
    border-left: 8px solid #f44336;
    background-color: #ffe6e6; /* Light red background */
}
    

.alert-info{
    color: #525252 !important;

}
/* Estilo do botão de fechar */
.close-btn {
    background-color: transparent;
    border: none;
    color: #aaa;
    font-size: 18px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

/* Animação para exibir e esconder o alerta */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.small-error {
    color: #fa3577;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, -60%); }
}

/* Estilo do overlay */
#loading-overlay {
    position: fixed;
    inset: 0; /* Define top, right, bottom, e left como 0 para cobrir toda a tela */
    background-color: rgba(0, 0, 0, 0.7); /* Escurece a tela */
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    z-index: 9999; /* Garante que fique acima de todos os outros elementos */
    display: none; /* Oculto por padrão */
}

/* Estilo do spinner */
#loading-spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Animação do spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
