/* 다크모드 토스트 메시지 스타일 */
.toast-container {
    position: fixed;
    /* 중앙 하단 위치 */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
}

.custom-toast {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 12px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    animation: slideInUp 0.3s ease-out;
    border-left: 4px solid #3498db;
}

.custom-toast.success {
    border-left-color: #27ae60;
}

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

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

.custom-toast.info {
    border-left-color: #3498db;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    font-size: 14px;
    line-height: 1.5;
    word-break: keep-all;
}

.toast-action {
    flex-shrink: 0;
}

.toast-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.toast-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* 하단에서 위로 슬라이드 애니메이션 */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

.toast-removing {
    animation: slideOutDown 0.3s ease-out forwards;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .toast-container {
        bottom: 20px;
        max-width: none;
        width: calc(100% - 24px);
    }

    .custom-toast {
        padding: 14px 16px;
    }

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

    .toast-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
}
