body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #2c3e50;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

textarea {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

#progress-bar-inner {
    height: 20px;
    width: 0%;
    background-color: #3498db;
    transition: width 0.4s;
}

#results-container {
    margin-top: 30px;
}

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

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

th {
    background-color: #f2f2f2;
}

td .match {
    font-weight: bold;
    color: #27ae60;
}

td .no-match {
    color: #c0392b;
}

td .error {
    color: #e74c3c;
    font-weight: bold;
}

.result-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.result-row:hover {
    background-color: #f5f5f5;
}

.details-row {
    display: none;
}

.details-row td {
    padding: 0;
    background-color: #f8f9f9;
}

.details-container {
    display: flex;
    padding: 15px;
    justify-content: space-between;
}

.details-panel {
    width: 32%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
}

.details-panel h4 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.details-panel pre {
    white-space: pre-wrap; /* Preserves whitespace and wraps text */
    font-family: monospace;
    font-size: 0.9rem;
    margin: 0;
}

.details-panel mark {
    background-color: #f1c40f;
    padding: 2px;
    border-radius: 2px;
}

#summary-stats {
    margin-top: 10px;
    padding: 15px;
    background: #ecf0f1;
    border-radius: 4px;
}
