* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: rgb(0, 91, 150);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

/* Sidebar Navigation */
#sidenavbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 120px;
    height: 100vh;
    background: rgb(44, 44, 44);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.navitem {
    width: 80px;
    height: 80px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.navitem img {
    max-width: 50px;
    max-height: 50px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.navitem:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Active navigation indicator */
.nav-indicator {
    position: absolute;
    left: -5px;
    width: 5px;
    height: 60px;
    background: rgb(0, 150, 255);
    border-radius: 0 3px 3px 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
}

/* Main Content Area */
#maincontent {
    margin-left: 120px;
    min-height: 100vh;
    background: rgb(0, 76, 125);
    padding: 30px;
    transition: background-color 0.5s ease;
}

#maincontent h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

hr {
    border: none;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

/* Main Layout - Split Container */
.content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    height: calc(100vh - 180px);
}

/* Upcoming and Late Work Lists */
.upcominglist {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    overflow: hidden;
}

.upcominglist h2 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Containers for scrollable content */
.upcomingcontainer,
.latecontainer {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* Date Section Headers */
.date-section {
    margin-bottom: 25px;
}

.date-section h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Assignment Items */
.moduleitem {
    display: block;
    text-decoration: none;
    margin-bottom: 10px;
}

.assignment,
.videoassignment,
.quizassignment {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.assignment {
    border-left-color: rgb(100, 255, 100);
}

.videoassignment {
    border-left-color: rgb(255, 100, 100);
}

.quizassignment {
    border-left-color: rgb(100, 150, 255);
}

/* Late work gets red border */
.latecontainer .assignment,
.latecontainer .videoassignment,
.latecontainer .quizassignment {
    border-left-color: rgb(255, 80, 80);
    background: rgba(139, 0, 0, 0.2);
}

.assignment:hover,
.videoassignment:hover,
.quizassignment:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(5px);
}

.latecontainer .assignment:hover,
.latecontainer .videoassignment:hover,
.latecontainer .quizassignment:hover {
    background: rgba(139, 0, 0, 0.3);
}

.assignment img,
.videoassignment img,
.quizassignment img {
    width: 35px;
    height: 35px;
    border-radius: 6px;
}

.assignment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.assignment h2,
.videoassignment h2,
.quizassignment h2 {
    color: white;
    font-size: 1em;
    font-weight: 500;
    margin: 0;
}

.assignment-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

.course-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 500;
}

.due-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.due-date.urgent {
    color: rgb(255, 150, 150);
    font-weight: 600;
}

.due-date.overdue {
    color: rgb(255, 80, 80);
    font-weight: 700;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state img {
    width: 80px;
    height: 80px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.4);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.1);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .content-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .upcominglist {
        height: 50vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    #maincontent {
        margin-left: 80px;
        padding: 20px;
    }
    
    #sidenavbar {
        width: 80px;
    }
    
    .navitem {
        width: 60px;
        height: 60px;
    }
    
    .navitem img {
        max-width: 35px;
        max-height: 35px;
    }
}