/* == TO-DO LIST ENHANCED STYLING == */

.todo-card {
    border-radius: 16px;
    padding: 24px;
    color: #f0f4ff;
    width: 100%;
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
    margin: auto;
}

.todo-card h2 {
    font-family: 'Lemon Milk', sans-serif;
    font-size: 1.5rem;
    color: #1dd1a1;
    text-align: center;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    box-shadow: none;
    position: relative;
    top: -19px;
}

.todo-input-area {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.todo-input-area input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s ease;
}

.todo-input-area input::placeholder {
    color: #aaa;
    letter-spacing: 0.3px;
}

.todo-input-area button {
    padding: 12px 22px;
    font-family: 'LemonMilk', sans-serif;
    background: linear-gradient(135deg, #506EEC, #7d5fff);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 14px rgba(80, 110, 236, 0.4);
    font-size: 1.2rem;
    min-width: 60px;
}

.todo-input-area button:hover {
    background: linear-gradient(135deg, #3d53c0, #624aff);
    transform: translateY(-1px);
}

.todo-list {
    list-style: none;
    margin-top: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}

.todo-list::-webkit-scrollbar {
    width: 6px;
}

.todo-list::-webkit-scrollbar-thumb {
    background-color: #7d5fff;
    border-radius: 4px;
}

.clear-btn {
    margin-top: 20px;
    width: 100%;
    background-color: #ff6b6b;
    border: none;
    padding: 12px 0;
    font-size: 1rem;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    font-family: 'LemonMilk', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.clear-btn:hover {
    background-color: #e95555;
    transform: scale(1.02);
}


/* == Task Items == */

ul {
    padding: 0;
    counter-reset: taskCounter;
}

li {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-size: 1.05rem;
    animation: slideFade 0.4s ease forwards;
    position: relative;
    margin-bottom: 10px;
    flex-wrap: wrap;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

li::before {
    counter-increment: taskCounter;
    content: counter(taskCounter, decimal-leading-zero) ' - ';
    position: absolute;
    left: 0.6rem;
    top: 1.5rem;
    color: #ccc;
    font-family: 'Lemon Milk', sans-serif;
    font-size: 14px;
}

li span {
    flex: 1;
    word-break: break-word;
    color: #f5f5f5;
    font-weight: 500;
    padding-left: 1rem;
    line-height: 1.4;
}

li .btn-group {
    display: flex;
    gap: 0.5rem;
}

li button {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

li button.editBtn {
    background: #1dd1a1;
}

li button.editBtn:hover {
    background: #10b890;
}

li button.dltBtn {
    background: #ff6b6b;
}

li button.dltBtn:hover {
    background: #e95555;
}


/* == Completed Task State == */

li.completed {
    opacity: 0.6;
    text-decoration: line-through;
    background: rgba(80, 80, 80, 0.6);
    color: #888;
    transition: 0.4s ease;
}

li.completed::before {
    color: #777;
}

li.completed button.editBtn {
    background: #91ffe2;
}

li.completed button.dltBtn {
    background: #fcbbbb;
}


/* == Animations == */

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* == Checkbox Styling (Optional if you're using one) == */

.checkbox-wrapper-15 .cbx {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.checkbox-wrapper-15 .cbx span {
    display: inline-block;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper-15 .cbx span:first-child {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: scale(1);
    vertical-align: middle;
    border: 1px solid #B9B8C3;
    transition: all 0.2s ease;
}

.checkbox-wrapper-15 .cbx span:first-child svg {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 6px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper-15 .cbx span:first-child:before {
    content: "";
    width: 100%;
    height: 100%;
    background: #506EEC;
    display: block;
    transform: scale(0);
    opacity: 1;
    border-radius: 50%;
    transition-delay: 0.2s;
}

.checkbox-wrapper-15 .cbx span:last-child {
    margin-left: -12px;
}

.checkbox-wrapper-15 .cbx span:last-child:after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    height: 1px;
    width: 100%;
    background: #B9B8C3;
    transform-origin: 0 0;
    transform: scaleX(0);
}

.checkbox-wrapper-15 .cbx:hover span:first-child {
    border-color: #3c53c7;
}

.checkbox-wrapper-15 .inp-cbx:checked+.cbx span:first-child {
    border-color: #3c53c7;
    background: #3c53c7;
    animation: check-15 0.6s ease;
}

.checkbox-wrapper-15 .inp-cbx:checked+.cbx span:first-child svg {
    stroke-dashoffset: 0;
}

.checkbox-wrapper-15 .inp-cbx:checked+.cbx span:first-child:before {
    transform: scale(2.2);
    opacity: 0;
    transition: all 0.6s ease;
}

.checkbox-wrapper-15 .inp-cbx:checked+.cbx span:last-child {
    color: #B9B8C3;
    transition: all 0.3s ease;
}

.checkbox-wrapper-15 .inp-cbx:checked+.cbx span:last-child:after {
    transform: scaleX(1);
    transition: all 0.3s ease;
}

.checkbox-wrapper-15 {
    margin-top: 2px;
}