/* Toast 通知组件样式 */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast i {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

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

.toast-close {
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

/* Toast 类型 */
.toast-success {
    border-left: 4px solid #27ae60;
}

.toast-success i {
    color: #27ae60;
}

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

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

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

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

.toast-info {
    border-left: 4px solid #3498db;
}

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

/* 确认对话框 */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.confirm-overlay.show {
    opacity: 1;
}

.confirm-overlay.show .confirm-dialog {
    transform: scale(1);
    opacity: 1;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s;
}

.confirm-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirm-header i {
    font-size: 28px;
    color: #f39c12;
}

.confirm-header h3 {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.confirm-body {
    padding: 0 24px 24px;
}

.confirm-body p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.confirm-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.confirm-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.confirm-cancel {
    background: #ecf0f1;
    color: #7f8c8d;
}

.confirm-cancel:hover {
    background: #d5dbdb;
}

.confirm-ok {
    background: #3498db;
    color: white;
}

.confirm-ok:hover {
    background: #2980b9;
}

/* 移动端适配 */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    .confirm-dialog {
        max-width: 90%;
    }
}










