/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* General body styling */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f4f8; /* Light background color */
}

header, footer {
    background-color: teal;
    color: white;
    padding: 10px 0;
}

header .container, footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header .logo a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

header .header-links ul {
    list-style: none;
    display: flex;
    margin: 0;
}

header .header-links ul li {
    margin-left: 20px;
}

header .header-links ul li a, header .header-links ul li button {
    color: white;
    background: transparent;
    border: none;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

header .header-links ul li a:hover, header .header-links ul li button:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* General styles for the dashboard */
.main {
    padding: 20px;
    background-color: #eef0f5;
}

.dashboard-container {
    margin: 0 auto;
    max-width: 800px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.dashboard-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.dashboard-info {
    margin-bottom: 20px;
    font-size: 16px;
}

.dashboard-info strong {
    color: #555;
}

.dashboard-form {
    margin-top: 20px;
}

.dashboard-form div {
    margin-bottom: 15px;
}

.dashboard-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.dashboard-form input[type="number"],
.dashboard-form textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.dashboard-form button[type="submit"] {
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.dashboard-form button[type="submit"]:hover {
    background-color: #357ab9;
}

/* Success and error messages */
.dashboard-success-message,
.dashboard-error-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.dashboard-success-message {
    background-color: #dff0d8;
    color: #3c763d;
}

.dashboard-error-message {
    background-color: #f2dede;
    color: #a94442;
}
/* View Report */

.viewreport-dashboard .dashboard-container {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.viewreport-dashboard .dashboard-container h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.viewreport-section {
    margin-bottom: 20px;
}

.viewreport-section h3 {
    font-size: 20px;
    color: #555;
}

.viewreport-table {
    width: 100%;
    border-collapse: collapse;
}

.viewreport-table table {
    width: 100%;
    border: 1px solid #ddd;
}

.viewreport-table th,
.viewreport-table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.viewreport-table th {
    text-align: left;
    background-color: #f2f2f2;
    font-weight: bold;
}

.viewreport-table td {
    text-align: left;
}

/* General styles for the test report form */
.test-report-main {
    padding: 20px;
    background-color: #eef0f5;
}

.test-report-container {
    margin: 0 auto;
    max-width: 800px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.test-report-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.test-report-info {
    margin-bottom: 20px;
    font-size: 16px;
}

.test-report-info strong {
    color: #555;
}

.test-report-form {
    margin-top: 20px;
}

.test-report-form div {
    margin-bottom: 15px;
}

.test-report-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.test-report-form input[type="number"],
.test-report-form textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.test-report-form button[type="submit"] {
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.test-report-form button[type="submit"]:hover {
    background-color: #357ab9;
}

/* Success and error messages */
.test-report-success-message,
.test-report-error-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.test-report-success-message {
    background-color: #dff0d8;
    color: #3c763d;
}

.test-report-error-message {
    background-color: #f2dede;
    color: #a94442;
}


/* Main Content Layout */
.main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px;
    text-align: center;
}

/* Centering the Login Form */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%; /* Full height to ensure centering vertically */
    padding: 40px 0;
}

.login-form-container {
    background-color: #ffffff;
    padding: 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
}

.login-form .form-title {
    font-size: 24px;
    color: teal;
    margin-bottom: 20px;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}


input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    margin-top: 5px; /* Small margin between label and input */
}


.login-form input[type="text"],
.login-form input[type="password"],
.login-form select{
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: teal;
}

.login-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
    min-width: 80%; /* Ensure the textarea occupies at least 80% of the container width */
}

/* Main Content Layout */
.student-dashboard .main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

/* Dashboard Container */
.student-dashboard .dashboard-container {
    background-color: #ffffff;
    padding: 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
}

/* Headings */
.student-dashboard .dashboard-container h2 {
    color: teal;
    text-align: center;
    margin-bottom: 20px;
}

.student-dashboard .dashboard-container h3 {
    color: teal;
    margin-bottom: 20px;
}

/* Actions Section */
.student-dashboard .actions {
    margin-bottom: 30px;
    text-align: center;
}

.student-dashboard .actions .btn.primary {
    display: inline-block;
    padding: 12px 20px;
    background-color: teal;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.student-dashboard .actions .btn.primary:hover {
    background-color: #006666;
}

.student-dashboard .actions .alert {
    color: red;
    font-size: 14px;
}

/* Main Content Layout */
.teacher-dashboard .main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

/* Dashboard Container */
.teacher-dashboard .dashboard-container {
    background-color: #ffffff;
    padding: 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
}

/* Headings */
.teacher-dashboard .dashboard-container h2 {
    color: teal;
    text-align: center;
    margin-bottom: 20px;
}

.teacher-dashboard .dashboard-container h3 {
    color: teal;
    margin-bottom: 20px;
}

/* Actions Section */
.teacher-dashboard .actions {
    margin-bottom: 30px;
    text-align: center;
}

.teacher-dashboard .actions .btn.primary {
    display: inline-block;
    padding: 12px 20px;
    background-color: teal;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.teacher-dashboard .actions .btn.primary:hover {
    background-color: #006666;
}

.teacher-dashboard .actions .alert {
    color: red;
    font-size: 14px;
}

.table-scroll {
    overflow-x: auto;
    margin-bottom: 20px;
}
.table-container {
    overflow-x: auto; /* Enables horizontal scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Pending and Completed Tests Sections */
.teacher-dashboard .pending-tests-section,
.teacher-dashboard .completed-tests-section {
    margin-bottom: 40px;
}

/* Table Styling */
.teacher-dashboard .dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.teacher-dashboard .dashboard-table th,
.teacher-dashboard .dashboard-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.teacher-dashboard .dashboard-table th {
    background-color: teal;
    color: white;
}

.teacher-dashboard .dashboard-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .teacher-dashboard .dashboard-container {
        width: 90%;
    }

    .teacher-dashboard .dashboard-table th,
    .teacher-dashboard .dashboard-table td {
        font-size: 14px;
    }
}


/* Welcome Section */
.student-dashboard .welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

/* Pending and Completed Tests Sections */
.student-dashboard .pending-tests-section,
.student-dashboard .completed-tests-section {
    margin-bottom: 40px;
}

/* Table Styling */
.student-dashboard .dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.student-dashboard .dashboard-table th,
.student-dashboard .dashboard-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.student-dashboard .dashboard-table th {
    background-color: teal;
    color: white;
}

.student-dashboard .dashboard-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .student-dashboard .dashboard-container {
        width: 90%;
    }

    .student-dashboard .dashboard-table th,
    .student-dashboard .dashboard-table td {
        font-size: 14px;
    }
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background-color: teal;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn.primary:hover {
    background-color: #006666;
}

.extra-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.extra-links a {
    color: teal;
    text-decoration: none;
    transition: color 0.3s;
}

.extra-links a:hover {
    color: #004d4d;
}

/* Footer Styles */
.footer {
    background-color: teal; /* Semi-transparent background color for footer */
    text-align: center;
    padding: 20px 0; /* Increase padding */
    width: 100%;
    margin-top: auto; /* Push footer to bottom */
}

.footer .row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer .row ul {
    list-style: none;
    padding: 0;
}

.footer .row ul li {
    display: inline;
}

.footer .row ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px; /* Increase font size */
}

.footer .row ul li a:hover {
    text-decoration: underline;
}






/* Responsive Design */
@media (max-width: 768px) {
    header .header-links ul {
        flex-direction: column;
        align-items: center;
    }

    header .header-links ul li {
        margin: 10px 0;
    }

    .login-form-container {
        width: 90%;
    }

    .extra-links {
        flex-direction: column;
        align-items: center;
    }

    .extra-links a {
        margin-bottom: 10px;
    }
}
