/* ========================================
   Toast 通知樣式
   ======================================== */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-fade-out {
    transform: translateX(400px);
    opacity: 0;
}

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

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

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #666;
}

/* Toast 類型樣式 */
.toast-info {
    border-left: 4px solid #3498db;
}

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

.toast-success {
    border-left: 4px solid #2ecc71;
}

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

.toast-warning {
    border-left: 4px solid #f39c12;
}

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

.toast-error {
    border-left: 4px solid #e74c3c;
}

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

/* 響應式設計 */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        transform: translateY(-100px);
    }

    .toast-show {
        transform: translateY(0);
    }

    .toast-fade-out {
        transform: translateY(-100px);
    }
}