/* Toast 样式 */
.toast-container {
    position: fixed;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    z-index: 99999;
    max-width: 400px;
}
#toastContainer{
    position: fixed;
    top: 50px !important;
    right: 50% !important;
    transform: translate(50%, -50%);
    z-index: 99999 !important;
    max-width: 400px;

}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-success {
    border-left-color: #52c41a;
}

.toast-error {
    border-left-color: #ff4d4f;
}

.toast-warning {
    border-left-color: #faad14;
}

.toast-info {
    border-left-color: #1890ff;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 10px;
}

.toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #52c41a;
}

.toast-error .toast-icon {
    color: #ff4d4f;
}

.toast-warning .toast-icon {
    color: #faad14;
}

.toast-info .toast-icon {
    color: #1890ff;
}

.toast-message {
    flex: 1;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f5f5f5;
    color: #666;
}

.toast-close i {
    font-size: 12px;
}

/* 确认弹窗样式 */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.confirm-overlay.show {
    opacity: 1;
}

.confirm-overlay.hide {
    opacity: 0;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    min-width: 400px;
    max-width: 500px;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.confirm-overlay.show .confirm-dialog {
    transform: scale(1);
}

.confirm-overlay.hide .confirm-dialog {
    transform: scale(0.9);
}

.confirm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.confirm-icon-success {
    color: #52c41a;
}

.confirm-icon-error {
    color: #ff4d4f;
}

.confirm-icon-warning {
    color: #faad14;
}

.confirm-icon-info {
    color: #1890ff;
}

.confirm-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.confirm-body {
    padding: 16px 24px 20px;
}

.confirm-message {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #f0f0f0;
}

.confirm-btn {
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    font-weight: 500;
}

.confirm-btn-cancel {
    background: white;
    color: #666;
}

.confirm-btn-cancel:hover {
    border-color: #40a9ff;
    color: #40a9ff;
}

.confirm-btn-confirm {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.confirm-btn-confirm:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

.confirm-btn-success {
    background: #52c41a;
    border-color: #52c41a;
}

.confirm-btn-success:hover {
    background: #73d13d;
    border-color: #73d13d;
}

.confirm-btn-error {
    background: #ff4d4f;
    border-color: #ff4d4f;
}

.confirm-btn-error:hover {
    background: #ff7875;
    border-color: #ff7875;
}

.confirm-btn-warning {
    background: #faad14;
    border-color: #faad14;
}

.confirm-btn-warning:hover {
    background: #ffc53d;
    border-color: #ffc53d;
}

.confirm-btn-info {
    background: #1890ff;
    border-color: #1890ff;
}

.confirm-btn-info:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
    }
    
    .confirm-dialog {
        min-width: auto;
        max-width: 90%;
        margin: 0 20px;
    }
    
    .confirm-header {
        padding: 16px 20px 12px;
    }
    
    .confirm-body {
        padding: 12px 20px 16px;
    }
    
    .confirm-footer {
        padding: 12px 20px 16px;
        flex-direction: column-reverse;
    }
    
    .confirm-btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .confirm-btn:last-child {
        margin-bottom: 0;
    }
} 

/* 居中弹窗样式 */
        .center-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10001;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .center-modal-overlay.show {
            opacity: 1;
        }

        .center-modal-overlay.hide {
            opacity: 0;
        }

        .center-modal {
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            max-width: 500px;
            width: 90%;
            transform: scale(0.8);
            transition: transform 0.3s ease;
            position: relative;
        }

        .center-modal-overlay.show .center-modal {
            transform: scale(1);
        }

        .center-modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: #999;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.3s ease;
            font-size: 18px;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .center-modal-close:hover {
            background: #f5f5f5;
            color: #666;
        }

        .center-modal-header {
            padding: 25px 25px 15px;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .center-modal-icon {
            font-size: 24px;
        }

        .center-modal-icon-success {
            color: #4CAF50;
        }

        .center-modal-icon-error {
            color: #f44336;
        }

        .center-modal-icon-warning {
            color: #ff9800;
        }

        .center-modal-icon-info {
            color: #2196F3;
        }

        .center-modal-title {
            font-size: 20px;
            color: #333;
            margin: 0;
        }

        .center-modal-body {
            padding: 20px 25px;
        }

        .center-modal-message {
            color: #666;
            line-height: 1.6;
            margin: 0;
        }

        .center-modal-footer {
            padding: 15px 25px 25px;
            display: flex;
            justify-content: center;
        }

        .center-modal-btn {
            padding: 12px 30px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 100px;
        }

        .center-modal-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .center-modal-btn-success {
            background: #4CAF50;
            color: white;
        }

        .center-modal-btn-error {
            background: #f44336;
            color: white;
        }

        .center-modal-btn-warning {
            background: #ff9800;
            color: white;
        }

        .center-modal-btn-info {
            background: #2196F3;
            color: white;
        }

        .center-modal-btn-primary {
            background: #667eea;
            color: white;
        }

/* ImportExport 导入导出组件样式 */
/* 备用模态框样式 */
.modal.show {
    display: block !important;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}


.upload-placeholder p {
    font-size: 14px;
    margin: 0;
}

.selected-file {
    padding: 12px;
    background: #f6f8fa;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

.file-info {
    align-items: center;
}

.file-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.export-content {
    max-width: 400px;
    margin: 0 auto;
}

.export-question {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.excel-icon-large {
    margin: 0 auto;
}



 /* Modal Header 颜色样式*/ .confirm-modal-header {border-bottom:1px solid #e9ecef;border-top-left-radius:0.5rem;border-top-right-radius:0.5rem;padding:1.5rem 1.5rem;}
.confirm-modal-header .confirm-modal-title {font-size:1rem;font-weight:600;float: left;margin-bottom: 0;}
.confirm-modal-header .confirm-modal-close {filter:invert(1);opacity:0.8;float: right;}
/* 默认样式 - 蓝色主题*/.confirm-modal-header-primary {background:linear-gradient(135deg,var(--primary-color),#4a90e2);color:#fff;border-bottom:none;}
.confirm-modal-header-primary .modal-title {color:#fff;font-weight:500;font-size:1rem;}
.confirm-modal-header-primary .btn-close {filter:invert(1) grayscale(100%) brightness(200%);}
/* 成功样式 - 绿色主题*/.confirm-modal-header-success {background:linear-gradient(135deg,#52c41a,#73d13d);color:#fff;border-bottom:none;}
.confirm-modal-header-success .modal-title {color:#fff;font-weight:500;font-size:1rem;}
.confirm-modal-header-success .btn-close {filter:invert(1) grayscale(100%) brightness(200%);}
/* 警告样式 - 橙色主题*/.confirm-modal-header-warning {background:linear-gradient(135deg,#ff9500,#ffa940);color:#fff;border-bottom:none;}
.confirm-modal-header-warning .modal-title {color:#fff;font-weight:500;font-size:1rem;}
.confirm-modal-header-warning .btn-close {filter:invert(1) grayscale(100%) brightness(200%);}
/* 错误样式 - 红色主题*/.confirm-modal-header-error {background:linear-gradient(135deg,#ff4d4f,#ff7875);color:#fff;border-bottom:none;}
.confirm-modal-header-error .modal-title {color:#fff;font-weight:500;font-size:1rem;}
.confirm-modal-header-error .btn-close {filter:invert(1) grayscale(100%) brightness(200%);}
/* 信息样式 - 青色主题*/.confirm-modal-header-info {background:linear-gradient(135deg,#1890ff,#40a9ff);color:#fff;border-bottom:none;}
.confirm-modal-header-info .modal-title {color:#fff;font-weight:500;font-size:1rem;}
.confirm-modal-header-info .btn-close {filter:invert(1) grayscale(100%) brightness(200%);}
/* 深色样式 - 灰色主题*/.confirm-modal-header-dark {background:linear-gradient(135deg,#434343,#6c757d);color:#fff;border-bottom:none;}
.confirm-modal-header-dark .modal-title {color:#fff;font-weight:500;font-size:1rem;}
.confirm-modal-header-dark .btn-close {filter:invert(1) grayscale(100%) brightness(200%);}
/* 浅色样式 - 浅灰主题*/.confirm-modal-header-light {background:linear-gradient(135deg,#f8f9fa,#e9ecef);color:#495057;border-bottom:1px solid #dee2e6;}
.confirm-modal-header-light .modal-title {color:#495057;font-weight:500;font-size:1rem;}
.confirm-modal-header-light .btn-close {filter:none;}

/* 确认按钮样式 */
.btn-confirm-success {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: #fff !important;
    transition: all 0.2s ease;
}
.btn-confirm-success:hover {
    background: linear-gradient(135deg, #73d13d, #95de64);
    border-color: #73d13d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.btn-confirm-error {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: #fff !important;
    transition: all 0.2s ease;
}
.btn-confirm-error:hover {
    background: linear-gradient(135deg, #ff7875, #ffa39e);
    border-color: #ff7875;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.btn-confirm-warning {
    background: linear-gradient(135deg, #ff9500, #ffa940);
    color: #fff !important;
    transition: all 0.2s ease;
}
.btn-confirm-warning:hover {
    background: linear-gradient(135deg, #ffa940, #ffbb73);
    border-color: #ffa940;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
}

.btn-confirm-info {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: #fff !important;
    transition: all 0.2s ease;
}
.btn-confirm-info:hover {
    background: linear-gradient(135deg, #40a9ff, #69c0ff);
    border-color: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* 取消按钮样式 */
.btn-cancel-success {
    background: #fff;
    color: #52c41a;
    transition: all 0.2s ease;
}
.btn-cancel-success:hover {
    background: #f6ffed;
    border-color: #73d13d;
    color: #73d13d;
    transform: translateY(-1px);
}

.btn-cancel-error {
    background: #fff;
    color: #ff4d4f;
    transition: all 0.2s ease;
}
.btn-cancel-error:hover {
    background: #fff2f0;
    border-color: #ff7875;
    color: #ff7875;
    transform: translateY(-1px);
}

.btn-cancel-warning {
    background: #fff;
    color: #ff9500;
    transition: all 0.2s ease;
}
.btn-cancel-warning:hover {
    background: #fff7e6;
    border-color: #ffa940;
    color: #ffa940;
    transform: translateY(-1px);
}

.btn-cancel-info {
    background: #fff;
    color: #1890ff;
    transition: all 0.2s ease;
}
.btn-cancel-info:hover {
    background: #f0f8ff;
    border-color: #40a9ff;
    color: #40a9ff;
    transform: translateY(-1px);
}
 