* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    background: #ecf0f1;
    padding: 10px 20px;
    border-radius: 5px;
}

.stat-item strong {
    color: #3498db;
    font-size: 20px;
}

.main-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group input[type="file"] {
    display: block;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
}

.help-text {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 5px;
}

.help-text code {
    background: #ecf0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Courier New", monospace;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.btn-success {
    background: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background: #229954;
}

.progress-section {
    margin-top: 30px;
    display: none;
}

.progress-section.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #ecf0f1;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

.log-container {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
    font-family: "Courier New", monospace;
    font-size: 13px;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid #34495e;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry.success {
    color: #2ecc71;
}

.log-entry.error {
    color: #e74c3c;
}

.log-entry.info {
    color: #3498db;
}

.log-entry.warning {
    color: #f39c12;
}

.results-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table th {
    background: #34495e;
    color: #fff;
    font-weight: 600;
}

.results-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.error {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.processing {
    background: #fff3cd;
    color: #856404;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

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

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.config-preview {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    margin-top: 5px;
}

.config-preview strong {
    color: #2c3e50;
}

