/* ==== Reset ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==== Body & Background ==== */
body {
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    background: conic-gradient(from 180deg at 100%, #050606, #143131, #0d0e0e, #29404b);
    color: #eaeaea;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 4rem;
}

/* ==== Container ==== */
.container {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    border: 5px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(188, 218, 189, 0.5);
    padding: 2.5rem 2rem;
    width: 550px;
    text-align: center;
    transition: 0.4s ease;
    height: 520px;
    overflow: hidden;
}

.container:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 100px rgba(8, 243, 16, 0.3);
}

/* ==== Heading ==== */
h2 {
    font-size: 1.9rem;
    color: #b4e0e8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(180, 224, 232, 0.4);
}

/* ==== Input Row ==== */
.input-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

/* ==== Input ==== */
.inp {
    display: flex;
    height: 2.6rem;
    width: 68%;
    padding: 0 12px;
    border: 2px solid rgba(180, 224, 232, 0.4);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    color: #fff;
    transition: 0.3s;
}

.inp::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.inp:focus {
    border-color: #91d9e0;
    box-shadow: 0 0 10px rgba(145, 217, 224, 0.5);
}

.check {
    accent-color: #17b41c;
    transform: scale(1.4);
    cursor: pointer;
    margin-right: 0.6rem;
}


/* ==== Add Button ==== */
.btn {
    height: 2.6rem;
    padding: 0 1.4rem;
    margin-left: 0.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #8ec5fc, #6a93cb);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #6a93cb, #8ec5fc);
    box-shadow: 0 4px 12px rgba(142, 197, 252, 0.4);
}

/* ==== To-Do List ==== */
ol {
    margin-top: 2rem;
    text-align: left;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* ==== Scrollbar Styling ==== */
ol::-webkit-scrollbar {
    width: 6px;
}

ol::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

ol::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

ol li {
    margin: 0.7rem 0;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    transition: 0.3s ease;

}

ol li:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.01);
    box-shadow: 0 3px 10px rgba(7, 39, 71, 0.2);

}

ol li p {
    flex: 1;
    margin: 0 0.8rem;
}


/* ==== Delete Button ==== */
.delete-btn {
    background: none;
    border: 2px solid #c4384a;
    color: #ede1e3;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}

.delete-btn:hover {
    background: #863d4c;
    color: #f7f2f2;
    box-shadow: 0 2px 6px rgba(142, 197, 252, 0.3);
}

/* ==== Glow Animation ==== */
@keyframes soft-glow {
    0%, 100% {
        box-shadow: 0 0 6px rgba(142, 197, 252, 0.3);
    }
    50% {
        box-shadow: 0 0 12px rgba(142, 197, 252, 0.6);
    }
}

.btn:hover,
.inp:focus {
    animation: soft-glow 1.5s infinite alternate;
}
