* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
.selected {
	background: red;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: #f5f7fa;
	color: #333;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

header {
	background-color: #003366;
	color: white;
	padding: 2rem 1rem;
	text-align: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

header h1 {
	font-size: 2.2rem;
	font-weight: 600;
}

.layout {
	display: flex;
	flex: 1;
}

.sidebar {
	background-color: #2f4f6f;
	color: white;
	padding: 2rem 1rem;
	width: 220px;
	flex-shrink: 0;
	box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.menu {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.menu a {
	color: white;
	text-decoration: none;
	font-weight: 500;
	padding: 0.6rem 1rem;
	border-radius: 5px;
	transition: background-color 0.3s;
}

.menu a:hover {
	background-color: #41698f;
}

.content {
	flex: 1;
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem;
}

h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	color: #003366;
	border-bottom: 2px solid #e0e6ed;
	padding-bottom: 0.5rem;
}
h2.no-underline {
	font-size: 2rem;
	border: none;
	color: #003366;
	padding-bottom: 0rem;
	margin-bottom: 0rem;
}

.year-group {
	margin-bottom: 2rem;
}

.year-group h3 {
	font-size: 1.4rem;
	margin-bottom: 1rem;
	color: #002244;
}

.module-link {
	display: block;
	background-color: #137970;
	border: 2px solid #137970;
	color: white;
	padding: 1.2rem;
	margin-bottom: 0.75rem;
	text-decoration: none;
	border-radius: 12px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	font-weight: 600;
	font-size: 1.1rem;
}

.module-link:hover {
	background-color: #09a123;
	border-color: #09a123;
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Assessment link styling */
.assessment-link {
	display: block;
	background-color: #137970;
	border: 2px solid #137970;
	color: white;
	padding: 1rem;
	margin-bottom: 0.75rem;
	text-decoration: none;
	border-radius: 8px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	font-weight: bold;
	font-size: 1.1rem;
	font-family: 'Georgia', 'Times New Roman', serif;
}

.assessment-link:hover {
	background-color: #09a123;
	border-color: #09a123;
	transform: translateY(-2px);
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
	.layout {
		flex-direction: column;
	}

	.sidebar {
		width: 100%;
		text-align: center;
		padding: 1rem;
	}

	.content {
		padding: 1rem;
	}
}
.login-section {
    margin-top: 2rem;
}

/* Styled form container */
.styled-form {
    background-color: #ffffff;
    border: 1px solid #d6e0f0;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input fields */
.styled-form input[type="text"],
.styled-form input[type="password"], 
.styled-form select,
.styled-form button
{
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

/* Submit button */
.styled-form input[type="submit"] {
    background-color: #003366;
    color: white;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.styled-form input[type="submit"]:hover {
    background-color: #0055a5;
}


/*HERE*/
table {
      width: 60%;
      margin: 20px auto;
      border-collapse: collapse;
      font-family: Arial, sans-serif;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    th, td {
      padding: 12px 16px;
      text-align: left;
      border-bottom: 1px solid #ddd;
    }
    th {
      background-color: #4CAF50;
      color: white;
      font-size: 16px;
    }
    tr:nth-child(even) {
      background-color: #f9f9f9;
    }
    tr:hover {
      background-color: #f1f1f1;
    }

/* Student Search Styles */
.student-search-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.student-search-section h4 {
    color: #003366;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-container input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #137970;
    box-shadow: 0 0 0 2px rgba(19, 121, 112, 0.2);
}

.search-container button {
    padding: 0.75rem 1.5rem;
    background-color: #137970;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-container button:hover {
    background-color: #0f635c;
    transform: translateY(-1px);
}

.search-container button:active {
    transform: translateY(0);
}

/* Search Results Styles */
#searchResults {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MCQ (Multiple Choice Question) Styles */
.mcq-section {
    margin: 2rem 0;
}

.mcq-container {
    /* Container made invisible - only contents are visible */
}

.mcq-container h4 {
    color: #003366;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

#mcqConfigForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

#mcqConfigForm label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

#mcqConfigForm input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#mcqConfigForm input:focus {
    outline: none;
    border-color: #137970;
    box-shadow: 0 0 0 2px rgba(19, 121, 112, 0.2);
}

#mcqTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#mcqTable th {
    background-color: #137970;
    color: white;
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
    font-weight: bold;
}

#mcqTable td {
    padding: 0.5rem;
    border: 1px solid #ddd;
    vertical-align: middle;
}

#mcqTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#mcqTable tr:hover {
    background-color: #f1f1f1;
}

.answer-select, .mark-input {
    width: 100%;
    padding: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
}

.answer-select:focus, .mark-input:focus {
    outline: none;
    border-color: #137970;
    box-shadow: 0 0 0 1px rgba(19, 121, 112, 0.3);
}

/* MCQ Button Styles */
.mcq-container button {
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.mcq-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mcq-container button:active {
    transform: translateY(0);
}

.mcq-container button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* MCQ Existing Markings List Styles */
.existing-mcq-list table {
    font-size: 0.9rem;
}

.existing-mcq-list th {
    background-color: #e9ecef !important;
    color: #495057;
    font-weight: 600;
}

.existing-mcq-list tbody tr:hover {
    background-color: #f8f9fa;
}

.existing-mcq-list button {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.existing-mcq-list button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.module-selection .form-input {
  font-size: 16px;              /* text size */
  font-family: "Inter", system-ui, sans-serif;
  width: 8rem;                  /* field width; adjust as needed */
  height: 2.2rem;               /* field height */
  padding: 0.25rem 0.5rem;
  border: 1px solid #ccd;
  border-radius: 6px;
  box-sizing: border-box;
}


#studentNo.form-input { width: 10rem; }

.module-selection .number-input {
  -moz-appearance: textfield;
}
.module-selection .number-input::-webkit-outer-spin-button,
.module-selection .number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mcq-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

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

.mcq-table th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.mcq-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.mcq-table td {
    vertical-align: middle;
}