body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    margin: 0;
}

.main {
    display: flex;
    min-height: 100vh;
    justify-items: center;
    align-items: center;
    gap: 40px;
    animation: fadeIn 0.6s ease;
}

.todo-container {
    flex: 1;
    background: white;
    width: 450px;
    margin: 25px;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.input-section {
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.error {
    color: red;
    font-size: 14px;
}

button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #4a90e2;
    color: white;
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.todo-container li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 8px;
    background: #f9fafc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.completed {
    text-decoration: line-through;
    color: gray;
    opacity: 0.6;
}

.filters {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

.filters button.active {
    background: #222;
}

#taskStats {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.info {
    flex: 1;
    margin: 25px;
    padding: 25px;
    color: black;
}

.info h2 {
    font-size: 28px;
}

.info ul {
    padding-left: 20px;
}

.author {
    margin-top: 20px;
    font-weight: bold;
}

.githubBtn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background: black;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.githubBtn:hover {
    background: #333;
}

@media (max-width: 768px) {
    .main {
        flex-direction: column;
        text-align: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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