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

body{
    background:
    linear-gradient(
        to right,
        #0f172a,
        #1e293b
    );

    color:white;

    min-height:100vh;

    padding:30px 15px;
}

.container{
    max-width:1200px;

    margin:auto;

    background:
    rgba(30,41,59,0.9);

    border-radius:20px;

    padding:30px;

    backdrop-filter:blur(10px);

    box-shadow:
    0 8px 30px rgba(0,0,0,0.3);
}

.header{
    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

    gap:20px;
}

h1{
    font-size:3rem;
}

.subtitle{
    color:#cbd5e1;
    margin-top:5px;
}

#currentDate{
    margin-top:10px;
    color:#94a3b8;
}

.focus-btn{
    background:#8b5cf6;
}

.task-input{
    display:grid;

    grid-template-columns:
    2fr 1.5fr 1fr 1fr;

    gap:12px;

    margin-bottom:30px;
}

.task-input input,
.task-input select{
    padding:14px;

    border:none;

    border-radius:10px;

    background:#334155;

    color:white;

    outline:none;
}

button{
    border:none;

    border-radius:10px;

    padding:14px;

    cursor:pointer;

    color:white;

    background:#3b82f6;

    font-weight:bold;

    transition:0.3s;
}

button:hover{
    transform:translateY(-2px);
    opacity:0.9;
}

.dashboard{
    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:15px;

    margin-bottom:30px;
}

.card{
    background:#334155;

    padding:25px;

    border-radius:15px;

    text-align:center;
}

.card h2{
    font-size:2rem;
    margin-bottom:10px;
}

.progress-section,
.ai-section,
.pomodoro-section,
.analytics-section{
    background:#334155;

    padding:25px;

    border-radius:15px;

    margin-bottom:30px;
}

.progress-top{
    display:flex;

    justify-content:space-between;

    margin-bottom:15px;
}

.progress-bar{
    width:100%;

    height:20px;

    background:#1e293b;

    border-radius:20px;

    overflow:hidden;

    margin-bottom:15px;
}

.progress-fill{
    height:100%;

    width:0%;

    background:
    linear-gradient(
        to right,
        #22c55e,
        #16a34a
    );

    transition:0.4s;
}

#motivationMessage{
    color:#cbd5e1;
}

#aiInsight{
    margin-top:15px;

    padding:20px;

    background:#1e293b;

    border-radius:10px;

    color:#cbd5e1;
}

#timer{
    font-size:4rem;

    text-align:center;

    margin:20px 0;
}

.timer-buttons{
    display:flex;
    gap:10px;
}

.timer-buttons button{
    flex:1;
}

#taskList{
    list-style:none;
}

.task-item{
    background:#334155;

    padding:20px;

    border-radius:15px;

    margin-bottom:15px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;
}

.task-left{
    flex:1;
}

.task-title{
    margin-bottom:8px;
}

.task-meta{
    display:flex;

    gap:15px;

    flex-wrap:wrap;
}

.priority{
    padding:5px 10px;

    border-radius:20px;

    font-size:0.8rem;

    font-weight:bold;
}

.high{
    background:#ef4444;
}

.medium{
    background:#f59e0b;
}

.low{
    background:#22c55e;
}

.task-buttons{
    display:flex;
    gap:10px;
}

.complete-btn{
    background:#22c55e;
}

.delete-btn{
    background:#ef4444;
}

.completed{
    opacity:0.6;
}

.completed .task-title{
    text-decoration:line-through;
}

.focus-mode{
    background:black !important;
}

.focus-mode .container{
    background:black;
}

@media(max-width:900px){

    .dashboard{
        grid-template-columns:1fr 1fr;
    }

    .task-input{
        grid-template-columns:1fr;
    }

    .header{
        flex-direction:column;
        align-items:flex-start;
    }
}

@media(max-width:600px){

    .dashboard{
        grid-template-columns:1fr;
    }

    .task-item{
        flex-direction:column;
        align-items:flex-start;
    }

    .task-buttons{
        width:100%;
    }

    .task-buttons button{
        flex:1;
    }

    h1{
        font-size:2.2rem;
    }
}