body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Info Box for Grading Categories */
.info-box {
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.info-box h3 {
    margin-top: 0;
    color: #1565c0;
    font-size: 1.2em;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.category-item {
    background-color: white;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #bbdefb;
}

.category-item strong {
    color: #1976d2;
    display: block;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.category-item p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

.problem-block {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    background-color: #fafafa;
}

.problem-block h3 {
    margin-top: 0;
    color: #2c3e50;
}

.original-code {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: vertical;
}

textarea.question-edit {
    height: 80px;
    background-color: #fffde7;
}

textarea.code-edit {
    height: 200px;
    background-color: #f0f4f8;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
}

button#submit-btn {
    background-color: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

button#submit-btn:hover {
    background-color: #2980b9;
}

button#submit-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* Loader Overlay */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#loader-overlay.hidden {
    display: none;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Results Modal */
#results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#results-modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #000;
}

.result-block {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.result-block h4 {
    margin-top: 0;
    color: #2c3e50;
}

.score-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-right: 5px;
}

.score-good {
    background-color: #d4edda;
    color: #155724;
}

.score-mid {
    background-color: #fff3cd;
    color: #856404;
}

.score-bad {
    background-color: #f8d7da;
    color: #721c24;
}

.false-positive {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}