/* =============================================
   TOASTER — HealthSurance
   ============================================= */

#hs-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2147483647; /* max possible z-index */
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    width: 340px;
}

.hs-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    border-left: 4px solid transparent;
    pointer-events: all;
    position: relative;
    overflow: hidden;
    animation: hsToastIn .35s cubic-bezier(.21,1.02,.73,1) forwards;
}

.hs-toast--success { border-left-color: #16A34A; }
.hs-toast--error   { border-left-color: #DC2626; }
.hs-toast--info    { border-left-color: #2563EB; }
.hs-toast--warning { border-left-color: #F59E0B; }

.hs-toast__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.hs-toast__body { flex: 1; min-width: 0; }

.hs-toast__title {
    font-weight: 700;
    font-size: .9rem;
    color: #1F2937;
    margin-bottom: 2px;
    font-family: "Segoe UI", sans-serif;
}

.hs-toast__msg {
    font-size: .83rem;
    color: #6B7280;
    line-height: 1.5;
    font-family: "Segoe UI", sans-serif;
    word-break: break-word;
}

.hs-toast__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    font-size: 1rem;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    transition: color .2s;
}

.hs-toast__close:hover { color: #1F2937; }

.hs-toast__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: hsToastBar linear forwards;
    border-radius: 0 0 14px 14px;
}

.hs-toast--success .hs-toast__bar { background: #16A34A; }
.hs-toast--error   .hs-toast__bar { background: #DC2626; }
.hs-toast--info    .hs-toast__bar { background: #2563EB; }
.hs-toast--warning .hs-toast__bar { background: #F59E0B; }

@keyframes hsToastIn {
    from { opacity: 0; transform: translateX(60px) scale(.92); }
    to   { opacity: 1; transform: translateX(0)    scale(1);   }
}

@keyframes hsToastOut {
    from { opacity: 1; transform: translateX(0)    scale(1);   }
    to   { opacity: 0; transform: translateX(60px) scale(.92); }
}

@keyframes hsToastBar {
    from { width: 100%; }
    to   { width: 0%;   }
}

@media (max-width: 480px) {
    #hs-toast-container {
        top: auto;
        bottom: 16px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}
