/* ---- Global Toast ---- */
#toast-container {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.g-toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 280px;
    max-width: 420px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-20px);
}

.g-toast--in {
    animation: toast-slide-in 0.35s ease forwards;
}
.g-toast--out {
    animation: toast-slide-out 0.3s ease forwards;
}

@keyframes toast-slide-in {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-slide-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-20px); }
}

.g-toast--success { background: #16a34a; }
.g-toast--error   { background: #dc2626; }
.g-toast--warn    { background: #E87722; }

.g-toast__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.g-toast__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.g-toast__msg {
    flex: 1;
    line-height: 1.4;
}

.g-toast__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.g-toast__close:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}
.g-toast__close-icon {
    width: 14px;
    height: 14px;
    display: block;
}
