*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:linear-gradient(135deg,#74ebd5,#ACB6E5);
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}

.container{
    width:550px;
    max-width:95%;
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

h1{
    text-align:center;
    color:#333;
}

.subtitle{
    text-align:center;
    color:gray;
    margin:10px 0 25px;
}

.input-box{
    display:flex;
    gap:10px;
}

.input-box input{
    flex:1;
    padding:12px;
    border:2px solid #ddd;
    border-radius:10px;
    outline:none;
    font-size:16px;
}

.input-box button{
    width:55px;
    border:none;
    background:#4CAF50;
    color:white;
    border-radius:10px;
    cursor:pointer;
    font-size:20px;
}

.input-box button:hover{
    background:#388E3C;
}

h3{
    margin:25px 0 15px;
    color:#444;
}

ul{
    list-style:none;
}

li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#f8f8f8;
    padding:12px;
    margin-bottom:10px;
    border-radius:10px;
}

.completed span{
    text-decoration:line-through;
    color:gray;
}

.completeBtn{
    background:#4CAF50;
    color:white;
    border:none;
    padding:6px 10px;
    border-radius:6px;
    cursor:pointer;
    margin-right:5px;
}

.deleteBtn{
    background:#f44336;
    color:white;
    border:none;
    padding:6px 10px;
    border-radius:6px;
    cursor:pointer;
}

.completeBtn:hover{
    background:#2E7D32;
}

.deleteBtn:hover{
    background:#C62828;
}
hr{
    margin:25px 0;
}

.timer-section{
    text-align:center;
}

#timer{
    font-size:48px;
    margin:20px 0;
    color:#333;
}

.timer-buttons{
    display:flex;
    justify-content:center;
    gap:10px;
}

.timer-buttons button{
    padding:10px 15px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    color:white;
    font-size:15px;
}

#startBtn{
    background:#4CAF50;
}

#pauseBtn{
    background:#FF9800;
}

#resetBtn{
    background:#2196F3;
}
.progress-section{
    margin:20px 0;
}

#progressText{
    margin-bottom:10px;
    font-weight:bold;
}

#progressBar{
    width:100%;
    height:18px;
}
/* ===========================
   Productivity Calendar
=========================== */

.calendar-section{
    margin:25px 0;
}

.calendar-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.calendar-header button{
    padding:8px 12px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
}

.weekdays{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    text-align:center;
    font-weight:bold;
    margin-bottom:10px;
}

#calendar{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:8px;
}

.day{
    height:45px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:10px;
    background:#f3f3f3;
    cursor:pointer;
    transition:0.3s;
}

.day:hover{
    background:#d9ecff;
}

.today{
    background:#4CAF50;
    color:white;
    font-weight:bold;
}
/* ===== Dark Theme ===== */

body{
    background:#121212;
    color:white;
    font-family:Arial, sans-serif;
}

.container{
    background:#1E1E1E;
    border-radius:20px;
    padding:25px;
    box-shadow:0 0 20px rgba(0,0,0,0.5);
}

input{
    background:#2A2A2A;
    color:white;
    border:1px solid #444;
}

button{
    background:#3B82F6;
    color:white;
    transition:0.3s;
}

button:hover{
    transform:scale(1.05);
}
/* ===== Headings ===== */

h1,
h2,
h3,
p {
    color: white;
}

/* ===== Calendar ===== */

.calendar-section {
    background: #1E1E1E;
    padding: 20px;
    border-radius: 15px;
}

.calendar-header button {
    background: #3B82F6;
    color: white;
}

.weekdays div {
    color: white;
}

.day {
    background: #2A2A2A;
    color: white;
    border: 1px solid #333;
}

.day:hover {
    background: #3B82F6;
}

.today {
    background: #22C55E;
    color: white;
}
/* ===== Beautiful Task Cards ===== */

#taskList {
    list-style: none;
    padding: 0;
}

#taskList li {
    background: #2A2A2A;
    margin: 12px 0;
    padding: 15px 20px;
    border-radius: 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    transition: all 0.3s ease;
}

#taskList li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

#taskList li span {
    font-size: 17px;
    font-weight: 500;
    word-break: break-word;
}

#taskList li div {
    display: flex;
    gap: 10px;
}

/* Complete Button */

.completeBtn {
    background: #22C55E;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.completeBtn:hover {
    background: #16A34A;
}

/* Delete Button */

.deleteBtn {
    background: #EF4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.deleteBtn:hover {
    background: #DC2626;
}

/* Completed Task */

.completed span {
    text-decoration: line-through;
    color: #9CA3AF;
}
/* ===== Premium Timer ===== */

.timer-section{
    background:#1E1E1E;
    margin-top:25px;
    padding:20px;
    border-radius:18px;
    text-align:center;
    box-shadow:0 0 20px rgba(0,0,0,0.4);
}

#timer{
    font-size:60px;
    font-weight:bold;
    color:#3B82F6;
    letter-spacing:4px;
    text-shadow:0 0 15px rgba(59,130,246,0.6);
    margin:20px 0;
}

.timer-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

#startBtn{
    background:#22C55E;
}

#pauseBtn{
    background:#F59E0B;
}

#resetBtn{
    background:#EF4444;
}

.timer-buttons button{
    padding:12px 20px;
    border:none;
    border-radius:12px;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

.timer-buttons button:hover{
    transform:translateY(-3px);
}
/* ===== Header ===== */

.header{
    text-align:center;
    margin-bottom:25px;
}

.header h1{
    font-size:40px;
    margin-bottom:10px;
}

#greeting{
    color:#3B82F6;
    font-size:20px;
    font-weight:bold;
    margin:5px 0;
}

#todayDate{
    color:#BBBBBB;
    font-size:15px;
    margin-bottom:10px;
}

.subtitle{
    color:#AAAAAA;
    font-style:italic;
}
/* ===== Name Box ===== */

#nameBox{
    margin:15px 0;
}

#nameInput{

    padding:10px;
    width:220px;

    border:none;

    border-radius:10px;

    background:#2A2A2A;

    color:white;
}

#saveNameBtn{

    padding:10px 15px;

    margin-left:10px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    background:#3B82F6;

    color:white;
}

#saveNameBtn:hover{

    background:#2563EB;

}
/* ===== Change Name Button ===== */

#changeNameBtn{
    display:none;
    margin:10px auto;
    padding:8px 15px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    background:#555;
    color:white;
    transition:0.3s;
}

#changeNameBtn:hover{
    background:#777;
}
/* Theme Button */

#themeBtn{
    display:block;
    margin:20px auto;
    padding:10px 18px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:15px;
    font-weight:bold;
}
/* ===== LIGHT MODE ===== */

body.light{
    background:#f2f2f2;
    color:#111;
}

body.light .container,
body.light .calendar-section,
body.light .timer-section{
    background:#ffffff;
}

body.light h1,
body.light h2,
body.light h3,
body.light p,
body.light #monthYear,
body.light #selectedDateHeading,
body.light #timer,
body.light #progressText,
body.light .weekdays div{
    color:#111 !important;
}

body.light input{
    background:#ffffff;
    color:#111;
    border:1px solid #ccc;
}

body.light .day{
    background:#f5f5f5;
    color:#111;
    border:1px solid #ddd;
}

body.light #taskList li{
    background:#ffffff;
}

body.light hr{
    border-color:#ddd;
}