/* 批量导入功能样式 */

/* 批量导入按钮 */
.batch-upload-btn {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    color: #ad1457;
    border: 1px solid #f48fb1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.batch-upload-btn:hover {
    background: linear-gradient(135deg, #f8bbd9, #f48fb1);
    color: #880e4f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 143, 177, 0.3);
}

.batch-upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(244, 143, 177, 0.2);
}

.batch-upload-btn .icon {
    font-size: 16px;
}

/* 批量导入弹窗 */
.batch-upload-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.batch-upload-modal-content {
    background-color: #fff;
    margin: 30px auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.batch-upload-modal-header {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-upload-modal-header h3 {
    margin: 0;
    color: #ad1457;
    font-size: 18px;
    font-weight: 600;
}

.batch-upload-close {
    color: #ad1457;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.batch-upload-close:hover {
    background-color: rgba(173, 20, 87, 0.1);
    transform: scale(1.1);
}

.batch-upload-modal-body {
    padding: 24px;
}

.batch-upload-instructions {
    background: #f8f9fa;
    border-left: 4px solid #f48fb1;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 0 6px 6px 0;
}

.batch-upload-instructions h4 {
    margin: 0 0 8px 0;
    color: #ad1457;
    font-size: 14px;
    font-weight: 600;
}

.batch-upload-instructions p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.batch-upload-instructions ul {
    margin: 8px 0 0 0;
    padding-left: 16px;
    color: #666;
    font-size: 13px;
}

.batch-upload-instructions li {
    margin-bottom: 4px;
}

.batch-upload-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.batch-upload-textarea:focus {
    outline: none;
    border-color: #f48fb1;
    box-shadow: 0 0 0 3px rgba(244, 143, 177, 0.1);
}

.batch-upload-textarea::placeholder {
    color: #999;
    font-style: italic;
}

.batch-upload-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.batch-upload-cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.batch-upload-cancel-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.batch-upload-confirm-btn {
    background: linear-gradient(135deg, #f48fb1, #ad1457);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.batch-upload-confirm-btn:hover {
    background: linear-gradient(135deg, #ad1457, #880e4f);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(173, 20, 87, 0.3);
}

.batch-upload-confirm-btn:active {
    transform: translateY(0);
}

.batch-upload-confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .batch-upload-modal-content {
        width: 100%;
        margin: 30px auto;
    }
    
    .batch-upload-modal-header {
        padding: 16px 20px;
    }
    
    .batch-upload-modal-body {
        padding: 20px;
    }
    
    .batch-upload-textarea {
        min-height: 150px;
        font-size: 12px;
    }
    
    .batch-upload-actions {
        flex-direction: column;
    }
    
    .batch-upload-cancel-btn,
    .batch-upload-confirm-btn {
        width: 100%;
        padding: 12px;
    }
}

/* 数据预览样式 */
.batch-upload-preview {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.batch-upload-preview h5 {
    margin: 0 0 8px 0;
    color: #ad1457;
    font-size: 13px;
    font-weight: 600;
}

.batch-upload-preview-text {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.batch-upload-error {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 13px;
}

.batch-upload-success {
    color: #2e7d32;
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 13px;
}