* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; }
.container { max-width: 1100px; margin: 20px auto; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
h1 { color: #2c3e50; margin-bottom: 8px; font-size: 1.5em; }
h2 { color: #34495e; margin: 20px 0 10px; font-size: 1.2em; }
.subtitle { color: #7f8c8d; margin-bottom: 20px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert-error { background: #fde8e8; border-left: 4px solid #e74c3c; color: #c0392b; }
.alert-warning { background: #fef9e7; border-left: 4px solid #f39c12; color: #856404; }
.alert ul { margin: 8px 0 0 20px; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9em; }
.form-group input[type="text"], .form-group input[type="file"],
.form-group select, .form-group textarea {
    width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.95em;
}
.form-group textarea { resize: vertical; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.inline-check { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; cursor: pointer; border: none; font-size: 0.95em; margin-right: 8px; }
.btn-primary { background: #3498db; color: #fff; }
.btn-primary:hover { background: #2980b9; }
.btn-secondary { background: #ecf0f1; color: #2c3e50; }
.btn-secondary:hover { background: #d5dbdb; }
.btn-small { padding: 4px 10px; font-size: 0.8em; background: #eaf2f8; color: #2980b9; border-radius: 4px; text-decoration: none; }
.btn-small:hover { background: #d4e6f1; }

/* Summary box */
.summary-box { background: #eaf2f8; padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 0.9em; }

/* Match count */
.match-count { background: #d5f5e3; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 1.1em; text-align: center; }

/* Pipeline */
.pipeline { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.stage { border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.stage-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; text-decoration: none; color: #333; transition: background 0.15s; }
.stage-link:hover { background: #f0f4f8; }
.stage-name { font-weight: 600; min-width: 120px; }
.stage-condition { flex: 1; color: #555; font-size: 0.9em; margin: 0 12px; }
.stage-count { font-family: monospace; font-size: 0.85em; color: #2c3e50; white-space: nowrap; }
.stage-skipped { opacity: 0.6; }
.stage-skipped .stage-link { background: #f9f9f9; }
.stage-warning { border-color: #f39c12; }
.stage-warning-text { padding: 4px 14px 8px; font-size: 0.8em; color: #856404; background: #fef9e7; }

/* Tables */
.table-wrapper { overflow-x: auto; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.85em; }
th { background: #2c3e50; color: #fff; padding: 8px 10px; text-align: left; white-space: nowrap; }
td { padding: 6px 10px; border-bottom: 1px solid #eee; }
tr:hover { background: #f8f9fa; }
.num { text-align: right; font-family: monospace; }
.total-row { background: #eaf2f8; font-size: 1em; }
.total-row td { border-top: 2px solid #2c3e50; padding: 10px; }

/* Actions */
.actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }

