/**
 * Toast 알림 시스템 스타일
 *
 * 경량이면서도 세련된 Toast 알림 디자인
 */

/* Toast 컨테이너 */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

/* Toast 기본 스타일 */
.toast {
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 500px;
    margin-bottom: 10px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    font-size: 14px;
    line-height: 1.5;
}

/* Toast 표시 애니메이션 */
.toast-show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast 숨김 애니메이션 */
.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Toast 아이콘 */
.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Toast 메시지 */
.toast-message {
    flex: 1;
    color: #333;
    word-break: break-word;
}

/* Toast 닫기 버튼 */
.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* 성공 Toast */
.toast-success {
    border-left: 4px solid #28a745;
}

.toast-success .toast-icon {
    color: #28a745;
    background-color: #d4edda;
}

/* 에러 Toast */
.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-error .toast-icon {
    color: #dc3545;
    background-color: #f8d7da;
}

/* 정보 Toast */
.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-info .toast-icon {
    color: #17a2b8;
    background-color: #d1ecf1;
}

/* 경고 Toast */
.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-warning .toast-icon {
    color: #856404;
    background-color: #fff3cd;
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* 다크 모드 지원 (선택사항) */
@media (prefers-color-scheme: dark) {
    .toast {
        background-color: #2d2d2d;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .toast-message {
        color: #e0e0e0;
    }

    .toast-close {
        color: #999;
    }

    .toast-close:hover {
        color: #e0e0e0;
    }
}
