/* templates/static/css/modal-overlay.css */

/* Corrigir a classe hidden para corresponder à marcação HTML */
#modal-container.hidden {
    display: none;
    /* Use 'none' em vez de 'visibility: hidden' para evitar problemas */
}

#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    /* Maior que qualquer outro z-index da aplicação */
}

.modal-content>* {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modal-appear 0.3s ease-out;
    text-transform: none;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgb(9, 82, 154);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color:  #f8f9fa;
    font-weight:bolder;
    font-size: 1.25rem;
    background-color:rgb(9, 82, 154);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #f8f9fa;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #f8f9fa;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.close-modal:hover {
    color: #f8f9fa;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: rgb(194, 194, 194);
}

/* Resto do seu CSS permanece igual */

form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.button {
    padding: 0.5rem 1rem;
    border: none;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

/* Botões de posiivo ou negativo na função */
.custom-delete-button {
  width: 142px;
  height: 38px;
  cursor: pointer;
  box-shadow: 1px 1px 3px rgba(225, 225, 225, 0.8);
  position: relative;
  border: none;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  text-align: center;
  vertical-align: middle; 

  padding: 0.6rem 2rem;
  color: rgb(255, 255, 255);
  font-weight: bolder;
}
.custom-delete-button:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
/* Botão vermelho */
.custom-delete-button.red {
  background: #e62222;
}
.custom-delete-button.red:hover {
  background: #ca1d1d;
}

/* Botão verde */
.custom-delete-button.green {
  background: #28a745;
}
.custom-delete-button.green:hover {
  background: rgb(56, 142, 75);
}