body.test-page {
    overflow-y: auto;
    overflow-x: hidden;
}

body.test-page::after {
    display: none;
}

body.test-page .footer {
    display: none;
}

body.test-page .top-nav {
    padding: 0.5rem 2rem;
}

body.test-page .nav-link {
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
}

.test-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 120px auto 2rem auto;
    padding: 2rem;
    z-index: 10;
}

.test-form-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.test-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
}

.test-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.form-input {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    color: #999;
}

.form-description {
    margin: 0.5rem 0;
    padding: 1rem;
    background-color: rgba(250, 243, 232, 0.5);
    border-radius: 6px;
    border-left: 3px solid #888;
}

.form-description p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.btn-next {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 6px;
    padding: 0.875rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 0.5rem;
}

.btn-next:hover {
    background-color: #555;
}

.btn-next:active {
    transform: scale(0.98);
}

/* Timer styles */
.timer-container {
    position: fixed;
    top: 55px;
    right: 2rem;
    z-index: 100;
}

.timer {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    padding: 0.75rem 1.5rem;
    background-color: rgba(250, 243, 232, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Question styles */
.question-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.question-label {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.question-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.question-textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.question-textarea:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.question-textarea::placeholder {
    color: #999;
}

/* Code block styles for algorithm questions */
.code-block {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 0.75rem 0 1.75rem 0;
    overflow-x: auto;
    border: 1px solid #333;
}

.code-block code {
    font-family: 'SF Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #d4d4d4;
    white-space: pre;
    display: block;
}

/* Python syntax highlighting - VS Code dark theme colors */
.code-block .keyword { color: #569cd6; }
.code-block .builtin { color: #4ec9b0; }
.code-block .class-name { color: #4ec9b0; }
.code-block .function { color: #dcdcaa; }
.code-block .string { color: #ce9178; }
.code-block .number { color: #b5cea8; }
.code-block .comment { color: #6a9955; font-style: italic; }
.code-block .operator { color: #d4d4d4; }
.code-block .punctuation { color: #d4d4d4; }
.code-block .self { color: #9cdcfe; }
.code-block .parameter { color: #9cdcfe; }
.code-block .type { color: #4ec9b0; }
.code-block .decorator { color: #dcdcaa; }
.code-block .none { color: #569cd6; }

.question-text code {
    font-family: 'SF Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    background-color: rgba(0, 0, 0, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: #c7254e;
}

/* Section title for multi-question groups */
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 1rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ddd;
}
