/* ===================================================================
   notifications.css
   Biblioteca de Notificações e Modais do ERP MILLGEST IA 360
   - showToast: Mensagens rápidas no canto superior direito
   - showMessage / showQuestion: Modais de Diálogo com Template ERP
   =================================================================== */

/* ---------- TOAST ---------- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    min-width: 280px;
    max-width: 420px;
    pointer-events: auto;
}

.toast-msg.success { background: #10b981; }
.toast-msg.error   { background: #ef4444; }
.toast-msg.info    { background: var(--primary, #3b82f6); }
.toast-msg.warning { background: #f59e0b; }

.toast-msg i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(60px); }
}

/* ============================================================
   MODAL DE SESSÃO / NOTIFICAÇÃO (PADRÃO TABLER.IO & ERP TEMPLATE)
   ============================================================ */
.session-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: sessionFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.session-modal-card {
    background: var(--bg-card, #ffffff);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-color, rgba(226, 232, 240, 0.8));
    animation: sessionPopModal 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    box-sizing: border-box;
}

@keyframes sessionPopModal {
    from { opacity: 0; transform: scale(0.9) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.session-modal-top-bar {
    height: 5px;
    width: 100%;
    background: var(--primary, #3b82f6);
}

.session-modal-body {
    padding: 32px 28px 28px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.session-modal-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    background: var(--primary-light, rgba(59, 130, 246, 0.15));
    color: var(--primary, #3b82f6);
}

.session-modal-title {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main, #1e293b);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.session-modal-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted, #64748b);
    margin: 0 0 20px 0;
}

.session-modal-box {
    background: var(--bg-body, rgba(248, 250, 252, 0.8));
    border: 1px dashed var(--border-color, #cbd5e1);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.session-modal-box p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-main, #334155);
    line-height: 1.5;
}

.session-modal-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    border: none;
    background: var(--primary, #3b82f6);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.session-modal-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.session-modal-btn:active {
    transform: translateY(0);
}

/* Suporte completo ao tema escuro do ERP */
body.dark-theme .session-modal-card,
.dark-theme .session-modal-card {
    background: var(--bg-card, #1e293b);
    border-color: var(--border-color, #334155);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

body.dark-theme .session-modal-title,
.dark-theme .session-modal-title {
    color: var(--text-main, #f8fafc);
}

body.dark-theme .session-modal-subtitle,
.dark-theme .session-modal-subtitle {
    color: var(--text-muted, #94a3b8);
}

body.dark-theme .session-modal-box,
.dark-theme .session-modal-box {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-theme .session-modal-box p,
.dark-theme .session-modal-box p {
    color: var(--text-main, #cbd5e1);
}
