/* 토스트 알림 스타일 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    min-width: 250px;
    max-width: 450px;
    background-color: #fff;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 16px;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

/* 토스트 표시 애니메이션 */
.toast.show {
    transform: translateX(0);
}

/* 토스트 타입별 색상 */
.toast.info {
    border-left-color: #3498db;
}

.toast.success {
    border-left-color: #2ecc71;
}

.toast.warning {
    border-left-color: #f39c12;
}

.toast.error {
    border-left-color: #e74c3c;
}

/* 토스트 아이콘 */
.toast-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toast.info .toast-icon {
    color: #3498db;
}

.toast.success .toast-icon {
    color: #2ecc71;
}

.toast.warning .toast-icon {
    color: #f39c12;
}

.toast.error .toast-icon {
    color: #e74c3c;
}

/* 토스트 메시지 */
.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    padding: 0;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        max-width: none;
    }

    .toast {
        margin-bottom: 8px;
        padding: 12px;
    }

    .toast-message {
        font-size: 12px;
    }
}

@media (prefers-color-scheme: dark) {
    .toast {
        background: #2d3748;
        color: #e2e8f0;
    }

    .toast-message {
        color: #e2e8f0;
    }

    .toast-close {
        color: #a0aec0;
    }

    .toast-close:hover {
        background: #4a5568;
        color: #e2e8f0;
    }
}