/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
}

/* Sidebar Styles */
.sidebar {
    width: 15%;
    background-color: #222;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
}

.sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar ul {
    list-style: none;
    margin-top: 20px;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding: 10px;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: red;
}

/* Content Styles */
.content {
    flex: 1;
    margin-left: 15%;
    padding: 20px;
    background-color: #f8f8f8;
    overflow-x: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 10px 20px;
    border-top: 8px solid red;
    margin-bottom: 20px;
    position: sticky;
    z-index: 100;
    margin-top: -20px;
    margin-left: -20px;
    margin-right: -20px;
}

.logo {
    height: 60px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    padding: 5px 10px;
    border-radius: 20px;
}

.search-bar .icon {
    height: 20px;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    outline: none;
    background: none;
    font-size: 1rem;
}

.user-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-options a {
    text-decoration: none;
    color: #000;
    font-size: 0.9rem;
}

.user-options .icon {
    height: 24px;
    cursor: pointer;
}

/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.filters select,
.filters input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Course List */
.course-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.course-list::-webkit-scrollbar {
    width: 8px;
}

.course-list::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

.course-list::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.course-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    height: 250px;
}

.course-card img {
    max-width: 100%;
    height: 120px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.course-card .course-details h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.course-card .course-details p {
    font-size: 0.9rem;
    color: #555;
    margin: 5px 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    background: #eaeaea;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 50px; /* Adjust as needed */
    height: auto;
    margin-bottom: 10px;
}

.footer p {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* Upcoming Section */
.upcoming-section {
    margin-top: 20px;
}

.upcoming-section h2 {
    margin-bottom: 20px;
}

.upcoming-tasks {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.work, .assignment {
    background: #333;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    flex: 1;
}

.work h3, .assignment h3 {
    color: #f00;
}

.work ul, .assignment ul {
    list-style: none;
    padding: 0;
}

.work li, .assignment li {
    margin-bottom: 10px;
}

/* Upcoming Title */
.upcoming-title {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
}

.upcoming-title h2 {
    font-size: 1.5rem;
    color: #000;
    background-color: #f8f8f8;
    padding: 10px;
}

/* Upcoming Section */
.upcoming-section {
    padding: 20px;
    background: #292929;
    border-radius: 15px;
    color: #fff;
}

.upcoming-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.upcoming-column {
    flex: 1;
}

.upcoming-column h3 {
    color: #fff;
    text-align: left;
    margin-bottom: 20px;
}

.task {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.date {
    background: #d12a2a;
    color: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 10px 15px;
    margin-right: 15px;
    flex-shrink: 0;
    width: 80px; /* Ensure equal size */
}

.date .day {
    font-size: 1.5rem;
    font-weight: bold;
}

.date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.task-details {
    flex: 1;
}

.task-details p {
    margin: 0 0 5px;
    font-size: 0.9rem;
}

.progress-bar {
    height: 6px;
    background: #444;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: #fff;
    width: 0;
}

.view-all {
    text-align: center;
    margin-top: 20px;
}

.view-all a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.view-all a:hover {
    color: #fff;
}

