/* Reset + Basis */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

/* Layout */
.container {
    width: 100%;
    max-width: 520px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

/* Input Bereich */
.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

#taskInput {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    font-size: 16px;
}

#taskInput:focus {
    outline: none;
    border-color: #6ea8fe;
}

#addTaskBtn {
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: #2f81f7;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

#addTaskBtn:hover {
    background: #1f6feb;
}

/*Filter-Section*/
.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #d0d7de;
    background: white;
    border-radius: 10px;
    cursor: pointer;
}

.filter-btn:hover {
    background: #f3f4f6;
}

.filter-btn.active {
    background: #1f81f7;
    color: white;
    border-color: #2f81f7;
}

/*Task-Counter*/
#taskCounter {
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 14px;
}

/*Clear Completed Task*/
#clearCompletedBtn {
    margin-bottom: 18px;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: #6b7280;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

#clearCompletedBtn:hover {
    background: #4b5563;
}

/*EmptyState*/
#emptyState {
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    padding: 12px;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
}

/* Liste */
#taskList {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Task Item */
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.task-text {
    flex: 1;
    font-size: 16px;
    color: #111827;
    word-break: break-word;
}

/* Delete Button */
.delete-btn {
    border: none;
    background: #ef4444;
    color: white;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

.delete-btn:hover {
    background: #dc2626;
}

.completed .task-text {
    text-decoration: line-through;
    color: #9ca3af;
}








