body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1, h2 {
    text-align: center;
    color: #0056b3;
}

h1 {
    margin-bottom: 10px;
}

h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.loader-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.control-group label {
    flex-shrink: 0;
    font-weight: bold;
}

#test-selector, #url-importer {
    font-size: 1em;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    flex-grow: 1;
}

#load-test-btn, #import-url-btn, #import-file-btn {
    font-size: 1em;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

#load-test-btn:hover, #import-url-btn:hover, #import-file-btn:hover {
    background-color: #0056b3;
}

.question {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.question-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.question-content pre {
    background-color: #eef;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
}

.options label {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.options label:hover {
    background-color: #dde2e6;
}

.options input[type="radio"], .options input[type="checkbox"] {
    margin-right: 10px;
}

.programming-question .code-fill {
    display: inline-block;
    width: 120px;
    border-bottom: 1px solid #333;
    margin: 0 5px;
    text-align: center;
    font-style: italic;
    color: #888;
}

.programming-question p {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.result {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}

.result.correct {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.explanation {
    margin-top: 10px;
    padding: 10px;
    background-color: #fffbe6;
    border-left: 4px solid #ffc107;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}

.submit-btn, .reset-btn {
    flex-grow: 1;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn {
    background-color: #007bff;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.reset-btn {
    background-color: #dc3545;
}

.reset-btn:hover {
    background-color: #c82333;
}

.single-submit-btn {
    display: block;
    margin-top: 15px;
    margin-left: auto;
    padding: 8px 16px;
    font-size: 0.9em;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.single-submit-btn:hover {
    background-color: #218838;
}

#score-container {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    padding: 20px;
    background-color: #e9f7fd;
    border: 2px solid #007bff;
    border-radius: 10px;
}