.todo-container {
    max-width: 900px;
}

.todo-layout {
    display: flex;
    gap: 1.5rem;
    text-align: left;
    margin-top: 1.5rem;
}

.todo-sidebar {
    flex: 0 0 240px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.todo-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-pink);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-icon {
    background: linear-gradient(to right, var(--color-pink), var(--color-purple));
    border: none;
    color: var(--color-light);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.btn-icon:hover {
    transform: scale(1.1);
}

.btn-icon-danger {
    background: rgba(244, 67, 54, 0.75);
    width: auto;
    height: auto;
    border-radius: 0.6rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.new-list-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.new-list-form input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--color-light);
    font-size: 0.9rem;
}

.new-list-form input:focus {
    outline: none;
    border-color: var(--color-pink);
}

.new-list-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

.lists-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    max-height: 400px;
}

.list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.list-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.list-card.active {
    background: linear-gradient(to right, rgba(255, 107, 149, 0.3), rgba(131, 58, 180, 0.3));
    border-color: var(--color-pink);
}

.list-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.list-card-count {
    font-size: 0.75rem;
    opacity: 0.7;
    font-family: monospace;
    flex-shrink: 0;
}

.no-lists {
    font-size: 0.85rem;
    opacity: 0.6;
    text-align: center;
}

.todo-main {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 1.25rem;
    min-height: 400px;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 350px;
    opacity: 0.7;
    text-align: center;
    font-style: italic;
}

.todo-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.todo-content-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--color-pink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.add-item-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.add-item-form input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    color: var(--color-light);
    font-size: 0.95rem;
}

.add-item-form input:focus {
    outline: none;
    border-color: var(--color-pink);
}

.items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 420px;
    overflow-y: auto;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.6rem;
    padding: 0.6rem 0.75rem;
    transition: all 0.2s ease;
}

.item-row.done {
    opacity: 0.55;
}

.item-row.done .item-text {
    text-decoration: line-through;
}

.item-checkbox {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
}

.item-checkbox input {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-pink);
    display: inline-block;
    transition: all 0.2s ease;
}

.item-checkbox input:checked + .checkmark {
    background: linear-gradient(to right, var(--color-pink), var(--color-purple));
    border-color: transparent;
}

.item-checkbox input:focus-visible + .checkmark {
    outline: 3px solid var(--color-pink);
    outline-offset: 2px;
}

.item-text {
    flex: 1;
    font-size: 0.95rem;
    word-break: break-word;
}

.item-delete {
    background: none;
    border: none;
    color: var(--color-light);
    opacity: 0.5;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    transition: all 0.2s ease;
}

.item-delete:hover {
    opacity: 1;
    background: rgba(244, 67, 54, 0.3);
}

.no-items {
    text-align: center;
    opacity: 0.6;
    font-style: italic;
    font-size: 0.9rem;
    padding: 1rem 0;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .todo-layout {
        flex-direction: column;
    }
    .todo-sidebar {
        flex: none;
    }
    .lists-container {
        max-height: 200px;
    }
}
