body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.links a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.links a:hover {
    background-color: #2980b9;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.admin-menu, .student-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.menu-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.menu-item h3 {
    margin-top: 0;
    color: #2c3e50;
}

.menu-item p {
    color: #666;
    margin-bottom: 0;
}

/* Test Pages Styling */
.test-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.level-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid #95a5a6;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.level-card.highlighted {
    border-top-color: #e74c3c;
    background: #fff5f5;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.level-card h3 {
    color: #2c3e50;
    margin-top: 0;
}

.level-card p {
    color: #666;
    margin: 1rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #e74c3c;
}

.btn-primary:hover {
    background-color: #c0392b;
}

.test-info {
    background: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.test-info h3 {
    margin-top: 0;
    color: #2c3e50;
}

.test-info ul {
    margin: 1rem 0;
}

.test-info li {
    margin: 0.5rem 0;
    color: #555;
}

/* Test Container */
.test-container {
    max-width: 900px;
    margin: 0 auto;
}

.test-header {
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.test-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.test-header .test-info {
    color: #666;
    font-style: italic;
}

.test-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.test-section h2 {
    color: #2c3e50;
    margin-top: 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.section-info {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.section-info p {
    margin: 0.5rem 0;
    color: #555;
}

.instructions {
    font-style: italic;
    color: #666;
}

.question {
    background: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.question-number {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.question-text {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.options {
    margin: 1rem 0;
}

.option {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #ecf0f1;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.option:hover {
    background: #d5dbdb;
}

.reading-text {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    line-height: 1.8;
    border: 1px solid #ddd;
}

.listening-script {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #ddd;
}

.listening-script h4 {
    margin-top: 0;
    color: #3498db;
}

.listening-script pre {
    white-space: pre-wrap;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
}

.writing-task, .speaking-task {
    background: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.writing-task h4, .task-text {
    color: #2c3e50;
    margin-top: 0;
}

.writing-space, .speaking-space {
    background: #f9f9f9;
    padding: 2rem;
    min-height: 150px;
    border: 2px dashed #bdc3c7;
    border-radius: 4px;
    margin-top: 1rem;
}

.test-footer {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid #ddd;
    text-align: center;
}

/* Answer Page Styling */
.answer-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.answer-section h2 {
    color: #27ae60;
    margin-top: 0;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 0.5rem;
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.answer-item {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    border: 2px solid #27ae60;
}

.model-answer, .markscheme, .speaking-models {
    background: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.model-answer h3, .markscheme h3, .speaking-models h3 {
    color: #2c3e50;
    margin-top: 0;
}

.model-text {
    background: #f9f9f9;
    padding: 1.5rem;
    border-left: 4px solid #27ae60;
    line-height: 1.8;
    margin: 1rem 0;
}

.criterion {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #ecf0f1;
    border-radius: 4px;
}

.criterion h4 {
    color: #3498db;
    margin-top: 0;
}

.criterion p {
    color: #555;
    margin: 0.5rem 0;
}

.marking-note {
    background: #fff3cd;
    padding: 1rem;
    border-left: 4px solid #ffc107;
    margin: 1rem 0;
    border-radius: 4px;
}

.model-speaking {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.task-prompt {
    font-style: italic;
    color: #666;
    margin: 0.5rem 0;
}

.model-response {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-left: 4px solid #27ae60;
}

.marking-instructions {
    color: #555;
    font-style: italic;
    margin: 1rem 0;
}

.scoring-summary {
    border-left-color: #e74c3c;
}

.scoring-summary h2 {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.scoring-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.scoring-table th, .scoring-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.scoring-table th {
    background: #3498db;
    color: white;
}

.scoring-table .total-row {
    background: #ecf0f1;
    font-weight: bold;
}

.grade-interpretation {
    background: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.grade-interpretation h3 {
    color: #2c3e50;
    margin-top: 0;
}

.grade-interpretation ul {
    list-style: none;
    padding: 0;
}

.grade-interpretation li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #ecf0f1;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.alert {
    background: #fff3cd;
    padding: 2rem;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    margin: 2rem 0;
}

.alert p {
    margin: 1rem 0;
    color: #856404;
}

