/* ZupiChat notification HUD — ek waqt me ek hi card, screen ke beech.
   partials/notify.blade.php isse load karta hai (admin + panel dono). */

.zcn-wrap {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
}

.zcn-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 264px;
    max-width: 400px;
    padding: 16px 16px 16px 20px;
    border-radius: 16px;
    background: #fff;
    color: #0f2e2b;
    box-shadow: 0 1px 2px rgba(10, 31, 46, .08), 0 16px 40px rgba(10, 31, 46, .16);
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .18s ease-out, transform .18s ease-out;
}
.zcn-card.is-in { opacity: 1; transform: scale(1); }
.zcn-card.is-out { opacity: 0; transform: scale(.98); transition-duration: .14s; }

.zcn-icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--zcn-soft);
    color: var(--zcn-tone);
}
.zcn-icon svg { width: 22px; height: 22px; }
.zcn-icon svg path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}
.zcn-card.is-in .zcn-icon svg path { animation: zcn-draw .32s .08s ease-out forwards; }
@keyframes zcn-draw { to { stroke-dashoffset: 0; } }

.zcn-body { flex: 1; min-width: 0; }
.zcn-msg, .zcn-list li { white-space: pre-line; }
.zcn-msg {
    margin: 0;
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
    color: #0f2e2b;
    overflow-wrap: anywhere;
}
.zcn-list { margin: 0; padding: 0; list-style: none; }
.zcn-list li {
    position: relative;
    padding-left: 14px;
    font-size: 14px;
    line-height: 22px;
    color: #0f2e2b;
    overflow-wrap: anywhere;
}
.zcn-list li + li { margin-top: 4px; }
.zcn-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--zcn-tone);
}

.zcn-close {
    flex: none;
    align-self: flex-start;
    width: 32px;
    height: 32px;
    margin: -4px -4px 0 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8a9a98;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease-out, color .15s ease-out;
}
.zcn-close:hover { background: #f2f5f5; color: #0f2e2b; }
.zcn-close:active { transform: scale(.96); }
.zcn-close:focus-visible { outline: 2px solid #0a474c; outline-offset: 2px; }

.zcn-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--zcn-tone);
    opacity: .35;
    transform-origin: left;
}

.zcn--success { --zcn-tone: #17a06a; --zcn-soft: #e9f6ef; }
.zcn--error   { --zcn-tone: #d92d20; --zcn-soft: #fdecec; }
.zcn--warning { --zcn-tone: #b7601c; --zcn-soft: #fdf0e7; }
.zcn--info    { --zcn-tone: #0a474c; --zcn-soft: #e6f0ef; }

@media (max-width: 575px) {
    .zcn-card { width: 100%; max-width: none; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .zcn-card, .zcn-card.is-in, .zcn-card.is-out { transform: none; }
    .zcn-icon svg path { stroke-dashoffset: 0; }
    .zcn-card.is-in .zcn-icon svg path { animation: none; }
}
