/* iManage — toast */

/* ─── Notification box structure ─────────────────────────── */
#notification_box {
    width: 100%;
    position: fixed;
    z-index: 1090;
    background: #000;
    height: 48px;
    overflow: hidden;
    top: 0;
    left: 0;
}

#notification_slider {
    transform: translateY(-48px);
    transition: transform 0.36s ease-in-out;
}

#notification_slider.show-notification {
    transform: translateY(0);
}

#notification_message_bar {
    height: 48px;
    background: transparent;
    position: relative;
    transition: background-color 0.3s ease-in-out;
}

/* ─── Toast (notification_box) ───────────────────────────── */
.notification_message_content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    padding: 0 44px;   /* space for dismiss button on both sides */
}
/* Texte — toujours blanc quel que soit le fond sémantique */
#notification_text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #fff;
}
/* Force l'héritage sur tout le HTML injecté (spans, strong, a, badges...) */
#notification_text *:not(.badge):not(.btn) {
    color: inherit !important;
}
.nt-icon { display: none; }   /* icons disabled */
.nt-dismiss {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,.55);
    font-size: 1.1rem;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    transition: color .15s ease-out, opacity .15s ease-out;
    border-radius: 4px;
}
.nt-dismiss:hover { color: #fff; background: rgba(255,255,255,.12); }
/* Barre de progression — fine ligne au bas */
.nt-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255,255,255,.4);
    width: 100%;
    border-radius: 0 0 0 0;
}
/* Couleurs sémantiques */
#notification_message_bar.nt-success { background: #059669; }
#notification_message_bar.nt-warning { background: #b45309; }
#notification_message_bar.nt-danger  { background: #dc2626; }
#notification_message_bar.nt-info    { background: var(--accent, #0f766e); }

/* ─── Brand (logo + label) — v3.6.0 ─────────────────────────────────
   #brand_home est le lien cliquable de la barre supérieure (configuré par
   chaque projet via iManage.toast.configure({brand_label, logo_url, ...})).
   Il déclenche la navigation vers brand_link_id (typiquement 'dashboard').
*/
#brand_home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s ease;
}
#brand_home:hover { opacity: 0.85; }

#brand_home .brand-logo {
    height: 22px;
    width: auto;
    max-width: 140px;
    display: block;
    object-fit: contain;
    /* Le logo est rendu blanc sur la barre sombre via filter (compatible logos transparents).
       Les projets dont le logo est déjà clair peuvent annuler ce filter dans leur app.css. */
    filter: brightness(0) invert(1);
}

#brand_home .brand-label {
    font-weight: 600;
    letter-spacing: 0.01em;
}
