/* Styles speziell für die To-Do-App */

/* Abgehakte Todos */
.done {
    text-decoration: line-through;
    color: #999; /* helleres Grau */
}

/* Listenelemente unterscheiden */
.list-group-item.done-item {
    background-color: #2a2a2a; /* etwas dunkler */
    opacity: 0.85;
}

/* Eingabefeld für In-Place Edit */
.todo-inline-input {
    width: 150px;
    display: inline-block;
    margin-right: 0.5em;
}

/* Buttons in der Todo-Liste etwas kompakter */
.list-group-item .btn {
    margin-left: 0.2em;
}

/* ToDo-Form optisch leichter als Finanz-Formulare */
form.form-inline {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1em;
}



/* Standard-Toggle-Button (offen) */
.list-group-item .btn-toggle {
    background: #8FBCBB !important; /* Standard grünlich */
    color: #22252A !important;
}

/* Wenn ToDo erledigt -> andere Farbe */
.list-group-item.done-item .btn-toggle {
    background: #4C566A !important; /* gedämpftes Grau */
    color: #ECEFF4 !important;
}

/* ----- Mobile Optimierung für ToDo (ohne Edit) ----- */
@media (max-width: 768px) {
    /* Neue Todo-Eingabe: Input und Button untereinander */
    form.form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    form.form-inline input {
        width: 100%;
        margin-bottom: 0.6em;
    }
    form.form-inline button {
        width: 100%;
    }

    /* Todo-Liste: Text und Delete-Button in einer Zeile */
    .list-group-item {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Links: Toggle + Text, rechts: Delete */
    .list-group-item > div:first-child {
        display: flex;
        align-items: center;
        flex: 1;
    }
    .list-group-item > div:first-child span {
        margin-left: 0.6em;
    }

    /* Delete-Button kompakt rechts */
    .list-group-item form {
        margin: 0;
    }
}



