

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial,Helvetica,sans-serif;
}

body{
background:#edf2f7;
color:#333;
}

header{
background:#2563eb;
color:white;
padding:20px;
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
}

header h1{
font-size:32px;
}

nav{
display:flex;
gap:10px;
}

nav button{
background:white;
color:#2563eb;
border:none;
padding:10px 18px;
border-radius:8px;
cursor:pointer;
font-weight:bold;
}

nav button:hover{
background:#dbeafe;
}

.menu-btn{
display:none;
background:white;
color:#2563eb;
border:none;
padding:10px;
border-radius:8px;
cursor:pointer;
}

main{
width:90%;
max-width:1100px;
margin:30px auto;
}

.page{
display:none;
}

.active{
display:block;
}

h2{
margin-bottom:20px;
}

.welcome-box{
background:white;
padding:28px;
border-radius:12px;
box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.time-box{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin-top:20px;
}

.small-card{
background:#e0ecff;
padding:20px;
border-radius:10px;
text-align:center;
}

.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
}

.card{
background:white;
padding:30px;
text-align:center;
border-radius:12px;
box-shadow:0 2px 8px rgba(0,0,0,.1);
}

.card h3{
color:#2563eb;
font-size:35px;
}

.progress{
margin-top:30px;
background:white;
padding:20px;
border-radius:12px;
}

.bar{
width:100%;
height:20px;
background:#ddd;
border-radius:20px;
overflow:hidden;
margin:15px 0;
}

#progressBar{
width:0%;
height:100%;
background:#22c55e;
}

.task-form{
display:flex;
gap:10px;
margin-bottom:20px;
}

.task-form input{
flex:1;
padding:12px;
border:1px solid #bbb;
border-radius:8px;
}

.task-form button{
background:#2563eb;
color:white;
border:none;
padding:12px 20px;
border-radius:8px;
cursor:pointer;
}

#taskList{
list-style:none;
}

#taskList li{
background:white;
margin-bottom:12px;
padding:15px;
border-radius:10px;
display:flex;
justify-content:space-between;
align-items:center;
box-shadow:0 2px 5px rgba(0,0,0,.1);
}

.actions{
display:flex;
gap:8px;
}

.complete{
background:#22c55e;
color:white;
border:none;
padding:8px 12px;
border-radius:6px;
cursor:pointer;
}

.delete{
background:#ef4444;
color:white;
border:none;
padding:8px 12px;
border-radius:6px;
cursor:pointer;
}

.done{
text-decoration:line-through;
color:gray;
}

.calendar{
background:white;
padding:20px;
border-radius:12px;
box-shadow:0 2px 8px rgba(0,0,0,.1);
}

#monthTitle{
text-align:center;
margin-bottom:20px;
}

.week,
#calendarDays{
display:grid;
grid-template-columns:repeat(7,1fr);
gap:8px;
}

.week div{
background:#2563eb;
color:white;
text-align:center;
padding:10px;
border-radius:6px;
font-weight:bold;
}

.day{
background:#f4f4f4;
min-height:70px;
display:flex;
justify-content:center;
align-items:center;
border-radius:8px;
}

.today{
background:#2563eb;
color:white;
font-weight:bold;
}

textarea{
width:100%;
height:220px;
padding:15px;
border:1px solid #bbb;
border-radius:10px;
resize:vertical;
}

.note-buttons{
margin:15px 0;
display:flex;
gap:10px;
}

.note-buttons button{
background:#2563eb;
color:white;
border:none;
padding:10px 18px;
border-radius:8px;
cursor:pointer;
}

#savedNote{
background:white;
padding:20px;
border-radius:10px;
min-height:120px;
box-shadow:0 2px 6px rgba(0,0,0,.1);
}

footer{
text-align:center;
padding:20px;
color:#666;
}

@media(max-width:768px){

header{
flex-direction:column;
gap:15px;
}

.menu-btn{
display:block;
}

nav{
display:none;
flex-direction:column;
width:100%;
}

nav.show{
display:flex;
}

nav button{
width:100%;
}

.task-form{
flex-direction:column;
}

.week,
#calendarDays{
font-size:12px;
}

.day{
min-height:50px;
}
}