/**
 * Toast Notification Styles
 *
 * トースト通知のスタイル定義
 * 既存のFlash Messageスタイル（portal/style.css）と統一感を持たせる
 */

/* トーストコンテナ（右上固定） */
#toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

/* トースト本体 */
.toast {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 表示アニメーション */
.toast.toast-show {
    opacity: 1;
    transform: translateY(0);
}

/* 非表示アニメーション */
.toast.toast-hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* 成功メッセージ（既存Flash Messageと同じ色） */
.toast-success {
    background-color: #D1FAE5;
    color: #065F46;
}

/* エラーメッセージ（既存Flash Messageと同じ色） */
.toast-error {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* 情報メッセージ */
.toast-info {
    background-color: #DBEAFE;
    color: #1E40AF;
}

/* モバイル対応（中央上部に表示） */
@media (max-width: 768px) {
    #toast-container {
        top: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
        align-items: center;
    }

    .toast {
        width: 100%;
        text-align: center;
    }
}
