/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Poppins', Arial, sans-serif;
    color: #333;
    height: 100%;
    background-color: #f4f6f8;
}

/* Header Styling */
 #header {
    background-color: #4a42b4;
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100px;
}

.logo {
    width: 80px;
    height: 70px;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 50%; /* Circular image */
    position: absolute; /* Ensures it can be positioned freely */
    left: 20px; /* Adjust distance from the left */
    top: 20px;
}

/* Login Form Styling */
#form {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin: 100px auto 0;
    animation: fadeIn 1s ease-in-out;
}

#form h1 {
    margin-bottom: 1.5rem;
    font-size: 28px;
    color: #444;
    font-weight: 600;
}

#form label {
    display: block;
    margin: 10px 0 5px;
    font-size: 14px;
    text-align: left;
    color: #555;
}


#form input[type="text"],
#form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #f9f9f9;
    transition: border-color 0.3s ease;
}

#form input[type="text"]:focus,
#form input[type="password"]:focus {
    border-color: #6c5ce7;
    outline: none;
}

#form input[type="radio"] {
    margin-right: 8px;
}

#form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#form input[type="submit"]:hover {
    background-color: #4a42b4;
    transform: translateY(-2px);
}

#form p {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

#form a {
    color: #6c5ce7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

#form a:hover {
    color: #4a42b4;
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Homepage Styling */
.sidebar {
    background-color: #4a42b4;
    color: #fff;
    width: 250px;
    height: 100vh;
    position: fixed;
    padding: 20px;
    top: 0;
    left: 0;
    margin-top: 78px;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.sidebar img {
    display: block;
    width: 100px;
    height: 100px;
    margin: 10px auto;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar p {
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 15px 0;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar a:hover {
    background-color: #6c5ce7;
}
.sidebar a.active {
    background-color: #6c5ce7;
    color: #fff;
    font-weight: bold;
}
.sidebar .log_out{
    margin-top: auto;

}

.content {
    margin-left: 270px;
    padding: 20px;
    margin-top: 78px;
}

.dashboard-header1 {
    display: flex;
    justify-content: space-around;
    background-color: #e8e8e8;
    padding: 15px 0;
    border-radius: 5px;
    margin-bottom: 20px; /* Optional bottom border */
}

.dashboard-header1 h1 {
    font-size: 2rem;           /* Adjust font size */
    font-weight: bold;         /* Optional: Make text bold */
    color: #333;               /* Optional: Set text color */
}

.dashboard-header {
    display: flex;
    justify-content: space-around;
    background-color: #e8e8e8;
    padding: 15px 0;
    border-radius: 5px;
    margin-bottom: 20px;
}

.dashboard-header div {
    text-align: center;
    color: #333;
}

.dashboard-header h3 {
    font-size: 24px;
    color: #6c5ce7;
    margin-bottom: 5px;
}

.tabs {
    display: flex;
    background-color: #f4f4f4;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 10px 20px;
    cursor: pointer;
    text-align: center;
    color: #aaa;
    transition: color 0.3s, border-bottom 0.3s;
}

.tab:hover {
    color: #007bff;
}

.tab.active {
    border-bottom: 3px solid #007bff;
    color: #007bff;
    font-weight: bold;
}

.activity-section {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #fff;
}

.activity-header {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #e74c3c;
}

.activity-section p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.countdown {
    text-align: center;
    font-size: 1.5rem;
    color: #6c5ce7;
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .content {
        margin-left: 210px;
    }

    .dashboard-header {
        flex-direction: column;
    }
}

.editform {
    width: 40%;
    padding: 30px;
    margin: 50px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 100px;
}

.editform form {
    display: flex;
    flex-direction: column;
}

.editform input[type="file"] {
    margin-bottom: 20px;
}

.editform label {
    font-size: 1rem;
    margin-bottom: 5px;
}

.editform input[type="password"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.editform input[type="submit"] {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.editform input[type="submit"]:hover {
    background-color: #45a049;
}
.news-section {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-section h3 {
    margin-bottom: 10px;
    color: #333;
}

#news-list {
    list-style: none;
    padding: 0;
}

#news-list li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#news-list li h4 {
    margin: 0 0 5px;
    color: #007BFF;
}

#news-list li p {
    margin: 0;
    color: #555;
}

#news-form {
    margin-top: 15px;
}

#news-form input,
#news-form textarea {
    width: calc(100% - 20px);
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#news-form button {
    padding: 10px 15px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#news-form button:hover {
    background-color: #0056b3;
}
/*table student add educator*/

/*dashboard for educator*/
.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    background-color: #f9f9f9;
}

.tab.active {
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom: 2px solid #fff;
}

.tab-content {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/*assignment*/
.assignment-section form {
    margin-bottom: 20px;
}

.assignment-section label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.assignment-section input,
.assignment-section textarea,
.assignment-section button {
    width: calc(100% - 20px);
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.assignment-section button {
    background-color: #007BFF;
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
}

.assignment-section button:hover {
    background-color: #0056b3;
}

#assignment-note-display {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
}

/*module*/
.classroom-list h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.classroom-list label {
    display: block;
    margin: 8px 0;
    font-size: 16px;
    cursor: pointer;
}

.classroom-list input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

#selected-module {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#selected-module p {
    margin: 0;
    font-size: 16px;
    color: #555;
}

/* Styling for the Individual Activities section */
#individual-activities {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

/* Style for the Assignment Section */
.assignment-section {
    margin-top: 20px;
}

.assignment-section h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Style for the activity list */
#activity-list {
    list-style-type: none;
    padding: 0;
}

#activity-list li {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#activity-list li strong {
    font-size: 16px;
}

/* Style for the activity creation form */
#create-activity-form {
    margin-bottom: 30px;
}

#activity-description,
#due-date {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#activity-description {
    height: 100px;
}

/* Submit button for creating activity */
#create-activity-form button {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#create-activity-form button:hover {
    background-color: #0056b3;
}

/* Style for the Assessment Table */
/* Style for the Assessment Table */
#assessment-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
}

#assessment-table th,
#assessment-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

#assessment-table th {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}

#assessment-table tbody tr:hover {
    background-color: #f1f1f1;
}

#assessment-table a {
    color: #007BFF;
    text-decoration: none;
}

#assessment-table a:hover {
    text-decoration: underline;
}


/* Style for assessment upload form inside each activity item */
.upload-form {
    margin-top: 15px;
}

.upload-form input[type="file"] {
    padding: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.upload-form button {
    background-color: #28a745;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.upload-form button:hover {
    background-color: #218838;
}

/* Styling for messages or errors */
#error-message {
    color: red;
    font-weight: bold;
    margin-top: 20px;
}
/* Styling for the activities table */
.activity-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
font-family: Arial, sans-serif;
}

.activity-table th,
.activity-table td {
border: 1px solid #ddd;
padding: 10px;
text-align: left;
}

.activity-table th {
background-color: #007BFF;
color: white;
font-weight: bold;
text-transform: uppercase;
font-size: 14px;
}

.activity-table tbody tr:nth-child(even) {
background-color: #f9f9f9;
}

.activity-table tbody tr:hover {
background-color: #f1f1f1;
}

.activity-table td {
font-size: 14px;
color: #333;
}

.activity-table th:first-child,
.activity-table td:first-child {
width: 50%;
}
/* group card */
.group-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.group-card {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.group-header {
    margin-bottom: 10px;
}

.full-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.group-members .member {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.group-members .member img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.files-submitted {
    margin-top: 10px;
    font-size: 14px;
}

.join-button {
    margin-top: 10px;
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

