/**
 * YourIT Toast Notification
 * 모든 페이지에서 사용하는 공통 알림 컴포넌트.
 * 백엔드 에러·성공 메시지를 일관되게 사용자에게 노출한다.
 */

.yourit-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: calc(100vw - 48px);
}

.yourit-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e8eb;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #191f28;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .22s ease, transform .22s ease;
}

.yourit-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.yourit-toast.is-leaving {
    opacity: 0;
    transform: translateX(24px);
}

.yourit-toast__icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-top: 1px;
}

.yourit-toast__body {
    flex: 1 1 auto;
    word-break: break-word;
}

.yourit-toast__title {
    font-weight: 700;
    margin: 0 0 2px;
}

.yourit-toast__message {
    margin: 0;
    color: #4b5563;
}

.yourit-toast__close {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 6px;
}

.yourit-toast__close:hover {
    background: #f3f4f6;
    color: #374151;
}

.yourit-toast--success { border-left: 4px solid #10b981; }
.yourit-toast--success .yourit-toast__icon { background: #10b981; }

.yourit-toast--error { border-left: 4px solid #ef4444; }
.yourit-toast--error .yourit-toast__icon { background: #ef4444; }

.yourit-toast--warning { border-left: 4px solid #f59e0b; }
.yourit-toast--warning .yourit-toast__icon { background: #f59e0b; }

.yourit-toast--info { border-left: 4px solid #3b82f6; }
.yourit-toast--info .yourit-toast__icon { background: #3b82f6; }

@media (max-width: 480px) {
    .yourit-toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    .yourit-toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}
