body{
    font-family: Arial,sans-serif;
    background-color: hsl(0, 0%, 95%);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
   
}

html{
    scroll-behavior: smooth;
    user-select: none;
}

.container{
    border-radius: 20px; /* Single border-radius for the entire container */
    overflow: hidden; /* Ensure child elements respect the container's border-radius */
    margin-top: 30px;
    background-color: #fff;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.todo{
    padding: 20px 15px;
    background: linear-gradient(to right, hsl(207, 74%, 45%), #762fcd);
    
}
.container #clock{
    position: absolute;
    right: 24rem; 
    top: 4rem;
    font-weight: 500;
    font-size: 0.94rem;
}

.todo h1,h3{
    color: #fff;
    display: flex;
    flex-direction: column;
}
.todo p{
    color: #fff;
    top: 1.5rem;
    right: 1 rem;
}
.form{
    margin: 20px;
}
.form input{
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #ccc;
    border-radius: 15px; 
    margin: 10px;
    width: 600px;
    box-sizing: 100px;
}
.form button{
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 15px; 
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}
.form button:hover{
    background-color: #45a049;
}
.task{
    background-color: #fff;
    border-radius: 15px;
}
.line{
    padding: 10px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border: none;
    border-radius: 15px; 
    background-color: rgb(229,231,235);
    color: rgb(22, 21, 21);
    cursor: pointer;
    margin-left: 10px; 
}
.line:hover{
    background-color: #d1d5db;
}
.line.active{
    background-color: rgb(87, 137, 243);
    color: #fff;
}

.clear-all{
    position: absolute;
    right:24rem;
    color:#ef4444;
    cursor:pointer;
    font-size:.86rem;
}
.clear-all:hover{
    color:#dc2626;
}
hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 1rem 0;
  }

/* --- 6. TASK LIST / EMPTY STATE --- */
ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #374151;
    margin: 0 20px 20px 35px; /* Apply margin-left and margin-right */
    position: relative;
    margin-right: 80px; 
}

ul li p{
    margin-left: 35px; 
}

ul li::before {
    content: '';
    position: absolute;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background-image: url(images/unchecked.png);
    background-size: cover;
    background-position: center;
    top: 50%; 
    
    left: 8px;
    transform: translateY(-50%); 
}
    

ul li:hover::before {
    background-image: url(images/checked.png);
    cursor: pointer;
}

ul li.checked {
    color: #555;
    
}

ul li.checked::before {
    background-image: url(images/checked.png);
}

ul li:hover {
    background-color: #f3f4f6;
}

ul li span {
    color: #4d5a6f;
    position: absolute;
    right: 0px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
    text-align: center;
}
.task1{
    margin-right: 50px;
}

ul li span:hover {
    color: red;
    cursor: pointer;
    border-radius: 50%;
}


.task-list{ 
    min-height:180px;
    padding:2rem 2rem; 
    text-align:center; 
    color:#6b7280;
    background-color: #fff;
    border-radius: 15px; 
}
.task-list svg{ 
    opacity:.3; 
    width:38px; 
    height:38px; 
    margin-bottom:.6rem;
}
.task-list .empty-heading{ 
    font-size:1.4rem; 
    font-weight:600;
}
.task-list .empty-sub{ 
    font-size:.86rem; 
}

.stats{
    display:flex;
    justify-content:space-between;
    padding:.9rem 2rem;
    font-size:.87rem;
    background:#f8f9fc;
    border-top:1px solid #edf0f8;
    color:#4b5563;
}
