:root {
    --back-grad: linear-gradient(135deg, #1e0f3d, #4a1b7f, #7c28c6, #a312eb);
    --vazir: vazirmatn;
    --primary-color: #1e0f3d;
    --accent-color: #ff3366;
    --accent-hover: #ff1a4f;
    --text-color: #e0e0e0;
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --input-bg: rgba(255, 255, 255, 0.1);
}

* {
    font-family: 'poppins', var(--vazir);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: var(--transition);
}

html {
    background: var(--back-grad);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2em;
    margin: 0 auto;
}

.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
}

#trans-btn {
    font-size: 2.5rem;
    cursor: pointer;
    position: absolute;
    left: 3rem;
    top: 3.7rem;
    color: var(--accent-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

#trans-btn:hover {
    transform: scale(1.1) rotate(10deg);
    color: var(--accent-hover);
}

.to-do {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    margin: 0 auto;
    margin-bottom: 7em;
    padding: 2.5em;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: translateY(0);
}

.to-do h1 {
    color: var(--text-color);
    font-size: 2.5em;
    margin-bottom: 1em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.to-do:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.row {
    display: flex;
    align-items: center;
    gap: 1em;
    background: var(--input-bg);
    padding: 0.5em;
    border-radius: var(--border-radius);
    margin-bottom: 1.5em;
    border: 1px solid var(--border-color);
}

input {
    flex: 1;
    padding: 1em;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 1em;
}

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

button {
    padding: 1em 2em;
    border: none;
    border-radius: var(--border-radius);
    background: var(--accent-color);
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

button:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
}

ul li {
    list-style: none;
    padding: 1em;
    background: var(--input-bg);
    border-radius: var(--border-radius);
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

ul li::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: 1em;
    background-image: url('Assets/icons/unchecked.png');
    background-size: cover;
    transition: var(--transition);
}

ul li.checked {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
}

ul li.checked::before {
    background-image: url('Assets/icons/checked.png');
    transform: scale(1.2);
}

ul li span {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

ul li span:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

@media screen and (max-width: 768px) {
    .container {
        padding: 1em;
    }
    .to-do {
        padding: 1.5em;
    }
    .to-do h1 {
        font-size: 2em;
    }
    #trans-btn {
        position: absolute;
        left: 3rem;
        top: 1.8rem;
    }
}

@media screen and (max-width: 480px) {
    .row {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .to-do h1 {
        font-size: 1.5em;
    }

    #input-box::placeholder{
        position: relative;
        right: 1em;
    }
}

button,
.to-do {
    transition: background-color 0.3s, transform 0.3s;
}
