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

body {
    overflow: hidden;
    background: linear-gradient(135deg, #153677, #4e085f);
}

.container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #153677, #4e085f);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.todo-app {
    width: 100%;
    max-width: 33.75rem;  
    background: #fff;
    padding: 2.5rem 1.875rem 2.5rem;
    border-radius: 1.25rem;
}

.todo-app h2 {
    color: #002765;  /* Added # for hex color */
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.875rem;  /* Changed from margin */
}

.todo-app h2 svg {
    width: 1.875rem;  /* Made icon slightly bigger */
    margin-left: 1.25rem;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #edeef0;
    border-radius: 1.875rem;
    padding-left: 1.25rem;
    margin-bottom: 1.875rem;
}

#input-box {  /* Changed from .input to #input-box */
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 1rem 1.25rem;  /* Increased padding */
    font-size: 1.25rem;  /* Changed from font-weight */
}

ul li {
    list-style: none;
    font-size: 1.25rem;
    padding: 0.75rem 3.125rem 0.75rem 3.125rem; /* Added right padding for the X */
    user-select: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center; /* Centers text vertically with checkbox */
    min-height: 3.5rem; /* Ensures enough height for centering */
}

ul li::before {
    content: '';
    position: absolute;
    height: 2rem;
    width: 2rem;
    background-image: url('square-unchecked.svg');
    background-size: cover;
    background-position: center;
    top: 50%; /* Changed from 0.75rem */
    transform: translateY(-50%); /* Centers vertically */
    left: 0.5rem;
}

ul li.checked {
    color: #555;
    text-decoration: line-through;
}

ul li.checked::before {
    background-image: url('square-checked.svg');
}

ul li span {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.375rem;
    color: #555;
    line-height: 2.5rem;
    text-align: center;
    border-radius: 50%;  /* ✅ Makes it circular */
}

#list-container {
    max-height: 35rem; /* Adjust based on your item height - approximately 10 items */
    overflow-y: auto; /* Enables scrolling when list exceeds max-height */
    overflow-x: hidden;
}

/* Optional: Style the scrollbar */
#list-container::-webkit-scrollbar {
    width: 0.5rem;
}

#list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.625rem;
}

#list-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 0.625rem;
}

#list-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}