.modal {
    position: fixed;            /* fixa no viewport */
    top: 0;
    left: 0;
    width: 100%;               /* toda a largura da janela */
    height: 100%;              /* toda a altura da janela */
    z-index: 9999999999999;
    background-color: var(--surface-overlay);
    display: flex;              /* ativa flexbox */
    justify-content: center;    /* centro horizontal */
    align-items: center;        /* centro vertical */
    font-size: 18px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.modal.not-shown {
    display:none;
}

.modal.hidden {
    animation: fadeOut 0.5s forwards; /* Fade out animation */
}

.modal-content {
  box-sizing: border-box;      /* inclui padding na altura total */
  position: relative;
    background-color: var(--surface-elevated);
  padding: 30px;
  border-radius: 10px;
    box-shadow: var(--card-shadow);

  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* empilha do topo para baixo */
  align-items: center;

  width: 80%;
  max-width: 400px;
  max-height: 500px;           /* altura máxima */
  
  overflow-y: auto;            /* scroll interno vertical */
  overflow-x: hidden;          /* sem scroll horizontal */

  animation: slideUp 0.5s forwards;
}

/* Title styling */
.modal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}

.modal-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--primary-color); /* Blue line under the title */
}

/* Text styling */
.text-content-left {
    text-align: left;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
}

.text-content-center {
    text-align: center;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}

.modal-footer2 {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.no-show-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
}

.close-button:hover {
    color: var(--link-hover);
}

.loading-modal-content { 
    margin-bottom: 25px;
}
