*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Segoe UI, sans-serif;
}

body{
background:#f4f6fb;
}

.layout{
display:grid;
grid-template-columns:230px 1fr;
height:100vh;
}

/* Sidebar */

.sidebar{
background:#dbe2f0;
padding:30px 20px;
display:flex;
flex-direction:column;
justify-content:space-between;
}

.menu{
margin-top:70px;
}

.menu-btn{
width:100%;
padding:14px;
margin-bottom:20px;
border-radius:20px;
border:2px solid #3e66ff;
background:white;
color:#3e66ff;
font-weight:600;
cursor:pointer;
transition:0.2s;
}

.menu-btn:hover{
background:#3e66ff;
color:white;
}

/* Logout */

.logout-btn{
width:100%;
padding:14px;
border-radius:20px;
border:2px solid #d16464;
background:white;
color:#d16464;
font-weight:700;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
gap:8px;
transition:0.2s;
}

.logout-btn:hover{
background:#d16464;
color:white;
}

.logout-icon{
font-size:16px;
}

/* Main */

.main{
padding:40px 40px 40px 60px;
}

/* Topbar */

.topbar{
display:flex;
align-items:center;
margin-bottom:30px;
position:relative;
width:100%;
}

/* Center Search Bar */

.search-box{
display:flex;
align-items:center;
gap:10px;
border:1px solid #000000;
padding:12px 20px;
border-radius:30px;
width:500px;
background:white;

position:absolute;
left:40%;
transform:translateX(-50%);
}

.search-box input{
border:none;
outline:none;
flex:1;
font-size:15px;
}

/* Profile */

.profile{
display:flex;
align-items:center;
gap:10px;
margin-left:auto;
}

.profile img{
border-radius:50%;
}

.profile p{
font-size:13px;
color:#555;
}

/* Task Button */

.task-button{
border:2px solid #d16464;
color:#d16464;
background:white;
padding:10px 25px;
border-radius:20px;
margin-bottom:25px;
font-weight:600;
}

/* Content Area (Tasks + Day Box) */

.content-area{
display:grid;
grid-template-columns:1fr 320px;
gap:40px;
align-items:start;
}

/* Tasks */

#tasksContainer{
display:flex;
flex-direction:column;
gap:20px;
}

.task{
display:flex;
justify-content:space-between;
align-items:center;
background:#d8e0f2;
padding:20px 30px;
border-radius:5px;
}

.task h2{
color:#1f4fa5;
font-size:28px;
}

.task-info{
text-align:right;
color:#1f4fa5;
}

.task-info span{
font-size:14px;
}

/* Day Box */

.right-card{
background:#cfd7ea;
padding:40px;

height:65vh;

display:flex;
justify-content:center;
align-items:flex-start;

/* Slightly circular border */
border-radius:25px;

box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

#dayName{
color:#3c63ff;
font-size:26px;
font-weight:700;
margin-top:10px;
}

/* lectures css */
.courses-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}
/* Course Cards */
.course-card {
    background:#e2e7f3;
    border-radius:25px;
    padding:40px 30px;
    text-align:center;
}
.course-code {
    display:inline-block;
    background:#3556e8;
    color:white;
    padding:8px 18px;
    border-radius:10px;
    font-size:14px;
    margin-bottom:20px;
}
.course-title {
    font-size:22px;
    font-weight:700;
    margin-bottom:12px;
}
.course-instructor {
    color:#444;
    margin-bottom:25px;
}
.course-btn {
    background:#8c9ec7;
    border:none;
    color:white;
    padding:12px 30px;
    border-radius:20px;
    cursor:pointer;
}

/* ===============================
   UPDATES PAGE SPECIFIC
   =============================== */
.updates-header {
    margin-bottom: 25px;
}

.updates-header h2 {
    font-size: 24px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.updates-header p {
    color: #555;
    font-size: 15px;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-card {
    background: #f1f8ee; /* Light greenish tint */
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.update-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.update-course-title {
    font-weight: bold;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.update-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.tag-new {
    background: #fcd9b8;
    color: #cc5500;
}

.tag-updated {
    background: #a3e0a3;
    color: #1f7a1f;
}

.update-message {
    color: #333;
    font-size: 15px;
}

.update-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 13px;
    color: #777;
}

.update-link {
    color: #3e66ff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* --- Right Side Schedule --- */
.schedule-sidebar {
    background: #f0f4fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    height: 60vh;
}

.schedule-list {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1; /* Pushes the W/12 down */
}

.daily-class {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.daily-class .time {
    font-weight: bold;
    color: #2b3a5c;
    margin-bottom: 5px;
}

.daily-class .course {
    color: #4a5c82;
    font-size: 14px;
    margin-bottom: 5px;
}

.daily-class .room {
    color: #2b3a5c;
    font-weight: bold;
    font-size: 14px;
}

.week-indicator {
    color: #3e66ff;
    font-size: 22px;
    font-weight: bold;
    margin-top: auto; /* Stays at the bottom */
}