/* 通知系統樣式 */

/* Toast 容器響應式調整 */
.toast-container {
    max-width: 90vw;
}

/* Toast 基本樣式優化 */
.toast {
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

/* 進入動畫 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 退出動畫 */
.toast.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 成功通知樣式 */
.toast.text-bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

/* 錯誤通知樣式 */
.toast.text-bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #f86734 100%) !important;
}

/* 警告通知樣式 */
.toast.text-bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #212529 !important;
}

/* 信息通知樣式 */
.toast.text-bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #3f51b5 100%) !important;
}

/* 歡迎訊息特殊樣式 */
.toast-welcome {
    min-width: 400px;
    background: white;
    border: 2px solid #0066ff;
}

.toast-welcome .toast-header {
    background: linear-gradient(135deg, #0066ff 0%, #6a4c93 100%);
    color: white;
    font-weight: bold;
}

.toast-welcome .toast-body {
    padding: 1.25rem;
}

.toast-welcome ol {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

/* 圖標動畫 */
.toast-body i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 移動設備優化 */
@media (max-width: 576px) {
    .toast-container {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 1rem !important;
    }
    
    .toast {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .toast-welcome {
        min-width: unset;
        width: 100%;
    }
    
    /* 移動設備上從底部滑入 */
    @keyframes slideInUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .toast {
        animation: slideInUp 0.3s ease-out;
    }
    
    .toast.hiding {
        animation: slideOutDown 0.3s ease-out forwards;
    }
    
    @keyframes slideOutDown {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(100%);
            opacity: 0;
        }
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .toast-welcome {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .toast-welcome .toast-body {
        color: #e2e8f0;
    }
}