
/* =======================================================
   NOTIFICATIONS.CSS - SISTEMA DE NOTIFICAÇÕES (TOASTS)
   ==================================================== */

.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    width: 320px;
    max-width: 90vw;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: Arial, sans-serif;
    pointer-events: auto;
}

.notification-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    gap: 8px;
}

.notification-icon {
    font-size: 1.4em;
    width: 24px;
    text-align: center;
}

.notification-title {
    flex: 1;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.notification-close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.notification-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.notification-message {
    padding: 12px 16px;
    margin: 0;
    font-size: 0.95em;
    color: #444;
    line-height: 1.5;
}

/* Responsivo */
@media (max-width: 480px) {
    .notification-toast {
        top: 12px;
        right: 10px;
        
    }
}

/* Confirmação*/
.notification-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.notification-confirm-box {
  background: #ffffff;
  color: #fff;
  border-radius: 12px;
  padding: 25px 30px;
  width: 50%;
  max-width: 420px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.notification-confirm-box .notification-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #000000;
}

.notification-confirm-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.notification-btn-confirm,
.notification-btn-cancel {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  transition: background 0.2s ease;
}

.notification-btn-confirm {
  background: #2ecc71;
  color: #fff;
  margin-right: 10px;
}

.notification-btn-cancel {
  background: #e74c3c;
  color: #fff;
}
.notification-btn-confirm:hover {
  background: #27ae60;
}
.notification-btn-cancel:hover {
  background: #fff6f5;
}


/* =======================================================
   NOTIFICATIONS.CSS - SISTEMA DE NOTIFICAÇÕES (TOASTS)
   ==================================================== */

/* --- TOASTS (Notificações Flutuantes) --- */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    width: 320px;
    max-width: 90vw;
    z-index: 9999;
    
    /* Estado inicial para animação */
    opacity: 0;
    transform: translateX(120%); /* Garante que saia da tela */
    transition: opacity 0.3s ease, transform 0.3s ease;
    
    font-family: Arial, sans-serif;
    pointer-events: auto;
}

/* Classe que o JS deve adicionar para mostrar */
.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    gap: 8px;
}

.notification-icon {
    font-size: 1.4em;
    width: 24px;
    text-align: center;
    flex-shrink: 0; /* Impede que o ícone encolha */
}

.notification-title {
    flex: 1;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px; /* Aumentado levemente para toque */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}

.notification-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.notification-message {
    padding: 12px 16px;
    margin: 0;
    font-size: 0.95em;
    color: #444;
    line-height: 1.5;
    word-wrap: break-word; /* Garante que texto longo quebre linha */
}

/* --- MODAL DE CONFIRMAÇÃO --- */
.notification-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
    padding: 20px; /* Evita colar nas bordas */
}

.notification-confirm-box {
    background: #ffffff;
    color: #333; /* Corrigido para contraste */
    border-radius: 12px;
    padding: 25px 30px;
    width: 420px; /* Largura padrão desktop */
    max-width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.notification-confirm-box .notification-header {
    padding: 0 0 15px 0; /* Ajuste interno */
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.notification-confirm-message {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.notification-confirm-actions {
    display: flex;
    justify-content: flex-end; /* Alinha à direita no desktop */
    gap: 12px;
    margin-top: 10px;
}

.notification-btn-confirm,
.notification-btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    min-width: 100px;
}

.notification-btn-confirm {
    background: #2ecc71;
    color: #fff;
}

.notification-btn-cancel {
    background: #e74c3c;
    color: #fff;
}

.notification-btn-confirm:hover {
    background: #27ae60;
    transform: translateY(-1px);
}
.notification-btn-cancel:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* =======================================================
   RESPONSIVIDADE (MOBILE)
   ==================================================== */

@media (max-width: 600px) {
    /* Ajuste do TOAST no mobile */
    .notification-toast {
        top: 10px;
        left: 10px;
        right: 10px; /* Ocupa largura total com margem */
        width: auto; /* Substitui largura fixa */
        max-width: none;
        transform: translateY(-150%); /* Animação vindo de cima no mobile */
    }
    
    .notification-toast.show {
        transform: translateY(0);
    }

    /* Ajuste do MODAL CONFIRM no mobile */
    .notification-confirm-box {
        width: 100% !important; /* Força largura total */
        padding: 20px;
    }

    /* Botões empilhados para melhor toque */
    .notification-confirm-actions {
        flex-direction: column;
        gap: 10px;
    }

    .notification-btn-confirm,
    .notification-btn-cancel {
        width: 100%; /* Botões full-width */
        padding: 12px;
        font-size: 1rem;
        margin: 0; /* Remove margens antigas */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Inverte a ordem visual: Confirmar em cima, Cancelar em baixo */
    .notification-btn-cancel {
        order: 2;
        border: 1px solid #e74c3c;
        background: #e74c3c;
        color: #fff;
    }

.notification-btn-cancel:hover {
  background: #fff6f5;
}
    
    .notification-btn-confirm {
        order: 1;
    }
}
