/* 批处理预览前端编辑卡片样式 */
.batch-preview-card {
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

/* 确保sidebar和panel card顶部对齐 */
.sidebar.show-sidebar.contribute-sidebar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.sidebar.show-sidebar.contribute-sidebar .card {
    margin-top: 0 !important;
}

.content-layout > .panel.card {
    margin-top: 0 !important;
}

.batch-preview-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
}

.batch-preview-card .card-title {
    margin: 0;
    font-size: 14px; 
    font-weight: 600;
    color: #333;
}

.batch-preview-card .card-body {
    padding: 20px;
}

.preview-image-container {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.preview-image-container:hover .preview-image {
    opacity: 0.9;
}

.form-group .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-group .btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-group .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2997f7;
    border-color: #0d74cf;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #545b62;
    border-color: #495057;
}

.btn-danger {
    background-color: #dc35465e;
    border-color: #dc3545;
    color: #fff;
}

.btn-danger:hover:not(:disabled) {
    background-color: #c82333;
    border-color: #bd2130;
}

.alert {
    margin: 10px 0 0;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .batch-preview-card .card-body {
        padding: 15px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    .preview-image-container {
        min-height: 150px;
    }
}
