/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 28rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.todo-app {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
}

.header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.header h1 {
    color: #38bdf8;
    font-size: 1.5rem;
    font-weight: 400;
}

.check-icon {
    color: #38bdf8;
}

.todo-list {
    position: relative;
    min-height: 400px;
    background: white;
}

.red-line {
    position: absolute;
    left: 3rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #fecaca;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #38bdf8; /* Alterado para azul */
    position: relative;
}

.checkbox {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox.checked {
    background-color: #38bdf8;
    border-color: #38bdf8;
}

.checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 0.875rem;
}

.task-text {
    flex: 1;
    color: #374151;
}

.task-text.completed {
    text-decoration: line-through;
    color: #9ca3af;
}

.delete-btn {
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 0.25rem;
}

.delete-btn:hover {
    background-color: #f3f4f6;
}

.task-input {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #38bdf8; /* Alterado para azul */
}

.task-input input {
    flex: 1;
    border: none;
    outline: none;
    color: #374151;
    font-size: 1rem;
}

.task-input input::placeholder {
    color: #9ca3af;
}

.footer {
    text-align: center;
    padding: 1rem 0;
    color: #6b7280;
    font-size: 0.8rem; /* Fonte um pouco menor */
    margin-top: 1rem; /* Espaço entre a lista e o footer */
}

.footer a {
    color: inherit;
    text-decoration: underline;
    margin-left: 0.25rem;
}

.footer a:hover {
    color: #374151;
}