/* 토스트 알림 스타일 */

.toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 25rem;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15), 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 20rem;
    max-width: 25rem;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    position: relative;
    border-left: 0.25rem solid;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

.toast-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
}

.toast.success .toast-icon {
    background-color: #d1fae5;
    color: #10b981;
}

.toast.error .toast-icon {
    background-color: #fee2e2;
    color: #ef4444;
}

.toast.warning .toast-icon {
    background-color: #fef3c7;
    color: #f59e0b;
}

.toast.info .toast-icon {
    background-color: #dbeafe;
    color: #3b82f6;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.toast-message {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    white-space: pre-line;
}

.toast-close {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    border: none;
    background: none;
    padding: 0;
    font-size: 1.125rem;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #374151;
}

/* 애니메이션 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* 모바일 반응형 */
@media (max-width: 48rem) {
    .toast-container {
        top: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        max-width: 100%;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

