:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary: #00b894;
    --danger: #d63031;
    --light: #f5f6fa;
    --dark: #2d3436;
    --gray: #636e72;
    --light-gray: #dfe6e9;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('assets/images/todo-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    flex: 1;
}

header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.header-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 100%;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.9rem;
    color: var(--primary);
    margin-bottom: 10px;
}

header p {
    font-size: 1.7rem;
}

.todo-app {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

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

#task-input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

#task-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

#add-task-btn {
    padding: 15px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#add-task-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 8px 15px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
}

#task-list {
    list-style: none;
    margin-bottom: 20px;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.task-checkbox {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-text {
    flex: 1;
    font-size: 1.1rem;
    word-break: break-word;
}

.task-text.completed {
    text-decoration: line-through;
    color: var(--gray);
    opacity: 0.7;
}

.task-actions {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.edit-btn, .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.edit-btn {
    color: var(--primary);
}

.edit-btn:hover {
    background: rgba(108, 92, 231, 0.1);
}

.delete-btn {
    color: var(--danger);
}

.delete-btn:hover {
    background: rgba(214, 48, 49, 0.1);
}

.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--gray);
}

#clear-completed {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 5px;
}

#clear-completed:hover {
    background: rgba(214, 48, 49, 0.1);
}

footer {
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    padding: 30px 20px;
    margin-top: auto;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.footer-credits {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-credits a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

.footer-credits a:hover {
    color: var(--primary-dark);
}

.footer-github {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-github h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
    color: var(--dark);
}

.github-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: bounce 2s infinite;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.github-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.app-version {
    font-size: 0.8rem;
    color: var(--gray);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .todo-app {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .input-section {
        flex-direction: column;
    }
    
    #add-task-btn {
        justify-content: center;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-credits {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .todo-app {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .filters {
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}