/* トースト通知スタイル */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.toast {
    background-color: var(--card-bg, white);
    color: var(--text-color, #333);
    border-left: 4px solid #ccc;
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    animation: toast-in 0.3s ease-in-out;
    position: relative;
    min-width: 200px;
    font-size: 0.9rem;
}

.toast.success {
    border-left-color: var(--success-color, #28a745);
}

.toast.warning {
    border-left-color: var(--warning-color, #ffc107);
}

.toast.error {
    border-left-color: var(--danger-color, #dc3545);
}

.toast.info {
    border-left-color: var(--info-color, #17a2b8);
}

@keyframes toast-in {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* トーストの消えるアニメーション */
.toast-exit {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-out {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* トースト内アイコン */
.toast::before {
    margin-right: 10px;
    font-family: "bootstrap-icons";
    font-size: 1.1rem;
    vertical-align: middle;
}

.toast.success::before {
    content: "✓";
    color: var(--success-color, #28a745);
}

.toast.warning::before {
    content: "⚠";
    color: var(--warning-color, #ffc107);
}

.toast.error::before {
    content: "✕";
    color: var(--danger-color, #dc3545);
}

.toast.info::before {
    content: "ℹ";
    color: var(--info-color, #17a2b8);
}
