/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Background */
body {
    height: 100vh;
    background: url("pics/lights-prisms-effect-close-up.jpg") no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glassmorphism Card */
.todo-container {
    width: 360px;
    padding: 25px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 25px rgba(0, 255, 150, 0.3);
    animation: fadeIn 1s ease;
}

/* Title */
.todo-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #00ff9c;
    text-shadow: 0 0 10px #00ff9c;
}

/* Input Section */
.input-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-box input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.input-box input::placeholder {
    color: #bbb;
}

.input-box button, button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #ff9800, #00ff9c);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.input-box button:hover{
    transform: scale(1.1);
    box-shadow: 0 0 15px #00ff9c;
}

/* To-Do List */
.todo-list {
    list-style: none;
}

.todo-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    animation: slideIn 0.6s ease;
    transition: transform 0.3s, background 0.3s;
}

.todo-list li:hover {
    transform: translateX(5px);
    background: rgba(0, 255, 150, 0.2);
}

/* Checkbox Animation */
.todo-list input[type="checkbox"] {
    accent-color: #00ff9c;
    transform: scale(1.2);
}

/* Checked Effect */
.todo-list input:checked + span {
    text-decoration: line-through;
    color: #ff5252;
    animation: done 0.4s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
    opacity: 0;
    transform: scale(0.9);
}
    to {
    opacity: 1;
    transform: scale(1);
}
}

@keyframes slideIn {
    from {
    opacity: 0;
    transform: translateX(-20px);
}
    to {
    opacity: 1;
    transform: translateX(0);
}
}

@keyframes done {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* FOR DELETE */
li {
    position: relative;   /* important for right corner positioning */
    padding-right: 50px;  /* space so text doesn’t overlap the gif */
}

.delete-btn {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);

    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.delete-btn img {
    width: 28px;
    height: 28px;
}

.delete-btn:hover img {
    transform: scale(1.5);
    transition: transform 0.4s ease;
}

/* FOR EDIT */
li {
    position: relative;   /* important for right corner positioning */
    padding-right: 50px;  /* space so text doesn’t overlap the gif */
}

.edit-btn {
    position: absolute;
    top: 50%;
    right: 45px;
    transform: translateY(-50%);

    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.edit-btn img {
    width: 28px;
    height: 28px;
}

.edit-btn:hover img {
    transform: scale(1.5);
    transition: transform 0.4s ease;
}

/* RELOAD BUTTON */
/* Main container box */
.todo-container {
    position: relative;      /* REQUIRED */
    width: 420px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.85);
}

/* Reload button */
.reload {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 28px;
    height: 28px;

    border-radius: 50%;
    border: none;

    background: transparent;
    color: #000;
    font-size: 18px;
    font-weight: bold;

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.reload:hover {
    transform: rotate(180deg) scale(1.5);
    transition: transform 0.4s ease;
}