/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url('LMSS.jpg');
    background-size: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    color:black
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
    text-decoration: none;
}

button, .btn {
    cursor: pointer;
    background-color:goldenrod;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
}

button:hover, .btn:hover {
    background-color: goldenrod;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background for readability */
    border-radius: 10px;
}

/* Header Styles */
.header {
    background-color: rgba(70, 6, 6, 0.8); /* Adjusted for readability */
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background-color: darkred; /* Adjusted for readability */
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar li {
    margin-right: 20px;
}

.navbar a {
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

.navbar a:hover {
    background-color: goldenrod;
}

.navbar a.active {
    background-color: goldenrod;
}

/* Home Page Styles */
.intro {
    text-align: center;
    margin: 50px 0;
}

.features {
    margin: 50px 0;
}

.features .feature-item {
    margin-bottom: 30px;
}

.cta {
    text-align: center;
    margin: 50px 0;
}

/* Footer Styles */
.footer {
    background-color:rgba(70, 6, 6, 0.8); /* Adjusted for readability */
    color: #fff;
    text-align: center;
    padding: 15px 0;
}

/* About Page Styles */
.about-intro, .mission, .features, .team {
    margin: 50px 0;
}

.features ul {
    list-style: disc;
    padding-left: 20px;
}

.features li {
    margin-bottom: 10px;
}

.cta {
    text-align: center;
    margin: 50px 0;
}

/* Login Page Styles */
.form-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid goldenrod;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background for readability */
}

.form-container h2 {
    margin-bottom: 20px;
}

.form-container input[type="email"],
.form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background-color:goldenrod;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
}

.form-container button:hover {
    background-color: goldenrod;
}

.form-container p {
    margin-top: 10px;
    text-align: center;
}

.form-container a {
    color: goldenrod;
    text-decoration: none;
}

.form-container a:hover {
    text-decoration: underline;
}

/* Registration Page Styles */
.registration-form {
    margin: 20px 0;
}

.registration-form form {
    max-width: 500px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background for readability */
    padding: 20px;
    border-radius: 5px;
}

.registration-form label {
    display: block;
    margin-bottom: 5px;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.registration-form button {
    width: 100%;
    padding: 10px;
    background-color: goldenrod;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
}

.registration-form button:hover {
    background-color: goldenrod;
}

/* Messages Page Styles */
.message-container {
    display: flex;
    justify-content: space-between;
    margin: 50px auto;
    max-width: 900px;
}

.message-list {
    width: 45%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background for readability */
    padding: 20px;
    border-radius: 5px;
}

.message-list h2 {
    margin-bottom: 20px;
}

.message-list ul {
    list-style: none;
    padding: 0;
}

.message-list li {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.message-sender {
    font-weight: bold;
}

.message-date {
    font-size: 0.9em;
    color: #666;
}

.message-body {
    margin-bottom: 5px;
}

.reply-link {
    color: goldenrod;
    text-decoration: none;
}

.reply-link:hover {
    text-decoration: underline;
}

.message-compose {
    width: 45%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background for readability */
    padding: 20px;
    border-radius: 5px;
}

.message-compose h2 {
    margin-bottom: 20px;
}

.message-compose label {
    display: block;
    margin-bottom: 5px;
}

.message-compose input[type="text"],
.message-compose textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.message-compose button {
    width: 100%;
    padding: 10px;
    background-color: goldenrod;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
}

.message-compose button:hover {
    background-color:goldenrod;
}


* Profile Page Styles */
.profile-info, .profile-edit {
    margin: 50px 0;
}

.profile-info h2, .profile-edit h2 {
    margin-bottom: 20px;
}

.profile-details p {
    margin-bottom: 10px;
}

.profile-edit label {
    display: block;
    margin-bottom: 5px;
}

.profile-edit input[type="text"],
.profile-edit input[type="email"],
.profile-edit input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.profile-edit button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
}

.profile-edit button:hover {
    background-color: goldenrod;
}

/* Admin Dashboard Styles */
.admin-dashboard {
    margin: 20px 0;
}

.admin-dashboard-cards {
    display: flex;
    justify-content: space-around;
}

.admin-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    width: 30%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background for readability */
}

.admin-card h3 {
    margin-bottom: 10px;
}

.admin-card p {
    font-size: 24px;
    font-weight: bold;
}

/* Instructor Dashboard Styles */
.dashboard-section {
    margin: 20px 0;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: rgba(248, 249, 250, 0.9); /* Semi-transparent background for readability */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    margin-bottom: 15px;
}

.card a {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: goldenrod;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.card a:hover {
    background-color: goldenrod;
}

/* Student Dashboard Styles */
.student-dashboard {
    margin: 20px 0;
}

.student-dashboard-cards {
    display: flex;
    justify-content: space-around;
}

.student-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    width: 30%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background for readability */
}

.student-card h3 {
    margin-bottom: 10px;
}

.student-card p {
    font-size: 24px;
    font-weight: bold;
}

/* Course Management Styles */
.course-list {
    margin: 20px 0;
}

.course-list table {
    width: 100%;
    border-collapse: collapse;
}

.course-list th, .course-list td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.course-list th {
    background-color: rgba(244, 244, 244, 0.9); /* Semi-transparent background for readability */
}

.course-list a {
    color: goldenrod;
    text-decoration: none;
}

.course-list a:hover {
    text-decoration: underline;
}

/* User Management Styles */
.user-list {
    margin: 20px 0;
}

.user-list table {
    width: 100%;
    border-collapse: collapse;
}

.user-list th, .user-list td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.user-list th {
    background-color: rgba(244, 244, 244, 0.9); /* Semi-transparent background for readability */
}

.user-list a {
    color: goldenrod;
    text-decoration: none;
}

.user-list a:hover {
    text-decoration: underline;
}

/* Content Upload Styles */
.upload-form {
    margin: 20px 0;
}

.upload-form label {
    display: block;
    margin-bottom: 5px;
}

.upload-form input[type="text"],
.upload-form select,
.upload-form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.upload-form button {
    width: 100%;
    padding: 10px;
    background-color: goldenrod;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
}

.upload-form button:hover {
    background-color: goldenrod;
}

/* Quiz Page Styles */
.quiz-section {
    margin: 20px 0;
}

.quiz-section fieldset {
    margin-bottom: 20px;
}

.quiz-section legend {
    font-weight: bold;
}

.quiz-section p {
    margin: 10px 0;
}

.quiz-section label {
    display: block;
    margin-bottom: 5px;
}

.quiz-section button {
    width: 100%;
    padding: 10px;
    background-color: goldenrod;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
}

.quiz-section button:hover {
    background-color: goldenrod;
}

/* Progress Tracking Styles */
.progress-section {
    margin: 20px 0;
}

.progress-charts {
    display: flex;
    flex-direction: column;
}

.chart {
    margin-bottom: 20px;
}

.chart-bar {
    height: 20px;
    background-color: goldenrod;
    border-radius: 5px;
}

/* Discussion Forum Styles */
.forum-section {
    margin: 20px 0;
}

.forum-topic {
    margin-bottom: 20px;
}

.forum-topic h3 {
    margin-bottom: 10px;
}

.forum-topic a {
    color: goldenrod;
    text-decoration: none;
}

.forum-topic a:hover {
    text-decoration: underline;
}

/* Settings Page Styles */
.settings-form {
    margin: 20px 0;
}

.settings-form form {
    max-width: 500px;
    margin: 0 auto;
}

.settings-form label {
    display: block;
    margin-bottom: 5px;
}

.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.settings-form button {
    width: 100%;
    padding: 10px;
    background-color: goldenrod;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
}

.settings-form button:hover {
    background-color: goldenrod;
}

.settings-form h2 {
    margin-top: 30px;
}
