/* GOOGLE FONT */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

*{
box-sizing:border-box;
}

body{
font-family:'Inter',sans-serif;
margin:0;
background:#f5f7fb;
color:#333;
}

/* DASHBOARD LAYOUT */

.dashboard{
display:flex;
min-height:100vh;
}

/* SIDEBAR */

.sidebar{
width:230px;
background:#111827;
color:white;
padding:25px;
}

.sidebar h2{
margin-bottom:35px;
font-weight:600;
}

.sidebar ul{
list-style:none;
padding:0;
}

.sidebar ul li{
padding:12px 12px;
margin-bottom:8px;
border-radius:8px;
cursor:pointer;
transition:0.2s;
}

.sidebar ul li:hover{
background:#1f2937;
}

.sidebar a{
color:white;
text-decoration:none;
}

/* MAIN CONTENT */

.main{
flex:1;
padding:35px;
}

/* TOPBAR */

.topbar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:25px;
}

.welcome{
font-size:18px;
font-weight:500;
}

/* NOTIFICATION */

.notif{
position:relative;
cursor:pointer;
font-size:18px;
}

#notifCount{
background:#ef4444;
color:white;
font-size:12px;
padding:3px 7px;
border-radius:20px;
margin-left:5px;
}

#notifDropdown{
position:absolute;
top:30px;
right:0;
width:260px;
background:white;
border-radius:8px;
box-shadow:0 10px 25px rgba(0,0,0,0.1);
display:none;
max-height:320px;
overflow:auto;
z-index:100;
}

.notification-item{
padding:12px;
border-bottom:1px solid #eee;
transition:0.2s;
}

.notification-item:hover{
background:#f3f4f6;
}

/* CARD */

.card{
background:white;
border-radius:12px;
padding:20px;
box-shadow:0 4px 15px rgba(0,0,0,0.05);
margin-bottom:25px;
}

/* FORM */

form input,
form textarea,
form select{
width:100%;
padding:10px;
border:1px solid #e5e7eb;
border-radius:6px;
margin-top:10px;
margin-bottom:12px;
font-family:'Inter';
}

.form-row{
display:flex;
gap:10px;
}

/* BUTTON */

button{
cursor:pointer;
border:none;
border-radius:6px;
padding:8px 14px;
font-weight:500;
}

.btn{
background:#2563eb;
color:white;
}

.btn:hover{
background:#1d4ed8;
}

/* TASK CARD */

.task-card{
background:white;
padding:18px;
border-radius:10px;
box-shadow:0 3px 10px rgba(0,0,0,0.05);
margin-bottom:15px;
transition:0.2s;
}

.task-card:hover{
transform:translateY(-2px);
box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

.task-card h4{
margin:0;
margin-bottom:5px;
}

.task-card p{
margin:4px 0;
font-size:14px;
}

/* PRIORITY COLORS */

.priority-high{
color:#ef4444;
font-weight:600;
}

.priority-medium{
color:#f59e0b;
font-weight:600;
}

.priority-low{
color:#10b981;
font-weight:600;
}

/* ACTION BUTTONS */

.task-actions{
margin-top:10px;
display:flex;
gap:8px;
}

.edit-btn{
background:#f59e0b;
color:white;
}

.delete-btn{
background:#ef4444;
color:white;
}

/* SUBTASK */

#taskList input[type="checkbox"]{
margin-right:6px;
}

/* COMMENTS */

.comments-box{
border-top:1px solid #eee;
margin-top:10px;
padding-top:10px;
}

.comment{
background:#f3f4f6;
padding:10px;
border-radius:6px;
margin-bottom:8px;
}

.comment strong{
font-size:14px;
}

/* RESPONSIVE */

@media(max-width:900px){

.dashboard{
flex-direction:column;
}

.sidebar{
width:100%;
height:auto;
}

.main{
padding:20px;
}

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

}

/* KANBAN BOARD */

.kanban{
display:flex;
gap:20px;
margin-top:20px;
}

.kanban-column{
flex:1;
background:#f3f4f6;
border-radius:10px;
padding:15px;
min-height:400px;
}

.kanban-column h3{
margin-top:0;
font-size:16px;
}

.kanban-tasks{
min-height:200px;
}

.kanban-card{
background:white;
padding:12px;
border-radius:8px;
margin-bottom:10px;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
cursor:grab;
}

.kanban-card:active{
cursor:grabbing;
}

/* DASHBOARD STATS */

.stats{
display:flex;
gap:20px;
margin-bottom:25px;
}

.stat-card{
flex:1;
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 3px 10px rgba(0,0,0,0.05);
text-align:center;
}

.stat-card h4{
margin:0;
font-size:14px;
color:#666;
}

.stat-card p{
font-size:26px;
font-weight:600;
margin-top:8px;
}

.task-card{
transition:all 0.25s ease;
}

.task-card:active{
transform:scale(1.03);
}

.modal{
position:fixed;
inset:0;
background:rgba(0,0,0,0.45);
display:flex;
align-items:center;
justify-content:center;
z-index:999;
}

.modal-content{
background:#fff;
padding:24px;
border-radius:14px;
width:100%;
max-width:420px;
box-shadow:0 15px 40px rgba(0,0,0,0.15);
}

.modal-content input,
.modal-content textarea,
.modal-content select{
width:100%;
margin-bottom:12px;
padding:10px 12px;
border:1px solid #dbe1ea;
border-radius:8px;
}