:root {
  --primary-color: #4f46e5;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
}

body {
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.option-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.option-card h5 {
  color: #1e293b;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.tip {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.regex-display {
    font-family: 'Consolas', monospace;
    font-size: 16px;
    color: #1e293b;
    word-break: break-all;
    background: #f1f5f9;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid var(--success-color);
}

.results-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
}

.result-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid var(--success-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-family: 'Consolas', monospace;
    white-space: pre-wrap;
    position: relative;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-index {
    position: absolute;
    top: 5px;
    right: 10px;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: sans-serif;
}

.empty-results {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
}

.empty-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.instructions {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 14px;
}

.instructions h6 {
    color: #d97706;
    font-weight: 600;
    margin-bottom: 8px;
}

.example {
    font-family: 'Consolas', monospace;
    background: #fef3c7;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 13px;
    color: #92400e;
}

textarea {
    font-family: 'Consolas', monospace;
    min-height: 150px;
}

.match-count-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}